/* 🎨 MODERN DASHBOARD - AgriConnect Design System */

/* === CONTAINER === */
.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === HEADER === */
.dashboard-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
padding: 2rem 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.welcome-section {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
   opacity: 1;
        transform: translateX(0);
    }
}

/* === CONTENT === */
.dashboard-content {
    padding: 2rem 0;
}

/* === STATS CARDS === */
.stats-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
  opacity: 1;
        transform: translateY(0);
    }
}

.stat-display {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-display::before {
  content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* === CARDS === */
.card-modern {
    background: white;
    border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.card-modern:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* === HOVER LIFT === */
.hover-lift {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === LISTINGS PREVIEW === */
.listings-preview {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #22c55e #f3f4f6;
}

.listings-preview::-webkit-scrollbar {
    width: 8px;
}

.listings-preview::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.listings-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
}

.listings-preview::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.listing-preview-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.listing-preview-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.listing-preview-image {
  border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === ACTIVITY TIMELINE === */
.activity-timeline {
    max-height: 400px;
    overflow-y: auto;
  scrollbar-width: thin;
    scrollbar-color: #22c55e #f3f4f6;
}

.activity-timeline::-webkit-scrollbar {
    width: 8px;
}

.activity-timeline::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.activity-timeline::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
}

.activity-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.activity-item:hover {
    background: #f9fafb;
}

.activity-icon {
    position: relative;
    overflow: hidden;
}

.activity-icon::after {
    content: '';
  position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover .activity-icon::after {
    opacity: 1;
}

/* === PROGRESS BAR === */
.progress {
    height: 12px;
    border-radius: 10px;
    background: #f3f4f6;
overflow: hidden;
    position: relative;
}

.progress-bar {
 height: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
 left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === PROFILE TODOS === */
.profile-todos {
    margin-bottom: 1.5rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #6b7280;
}

.todo-item:hover {
    background: #f9fafb;
}

.todo-item i {
  font-size: 1rem;
    color: #22c55e;
}

/* === QUICK LINKS === */
.quick-links {
    display: flex;
  flex-direction: column;
    gap: 0.5rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: scaleY(0);
transition: transform 0.3s ease;
}

.quick-link-item:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #22c55e;
    transform: translateX(4px);
}

.quick-link-item:hover::before {
    transform: scaleY(1);
}

.quick-link-item i {
    width: 24px;
    text-align: center;
    color: #22c55e;
    font-size: 1.125rem;
}

/* === EMPTY STATE === */
.empty-state {
    padding: 3rem 1rem;
    text-center;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
 }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-state i {
    opacity: 0.2;
    display: block;
font-size: 4rem;
    margin-bottom: 1rem;
    color: #22c55e;
}

.empty-state h5 {
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    color: #1f2937;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

/* === LOADING CONTAINER === */
.loading-container {
    padding: 4rem 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === BADGES === */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* === GLASSMORPHISM EFFECT === */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem 0;
    }

    .dashboard-content {
        padding: 1rem 0;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .quick-actions {
        flex-direction: column;
        width: 100%;
  margin-top: 1rem;
    }

    .stat-number {
    font-size: 2rem;
    }
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .dashboard-container {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .dashboard-header {
      background: #1f2937;
        border-color: #374151;
    }

  .card-modern {
      background: #1f2937;
        border-color: #374151;
    }

    .listing-preview-item:hover,
    .activity-item:hover,
    .todo-item:hover {
        background: #111827;
    }

    .quick-link-item:hover {
      background: rgba(34, 197, 94, 0.1);
        border-color: #22c55e;
    }

    .welcome-title {
        color: white;
    }

    .welcome-subtitle {
        color: #9ca3af;
    }
}

/* === PRINT === */
@media print {
    .dashboard-header,
    .quick-actions,
    .quick-links,
    .activity-timeline {
  display: none;
}

    .dashboard-container {
     background: white;
    }

    .card-modern {
        box-shadow: none;
border: 1px solid #e5e7eb;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === FOCUS STATES === */
.quick-link-item:focus,
.listing-preview-item:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* === UTILITY CLASSES === */
.text-gradient-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.shadow-modern {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-modern {
    border-radius: 16px;
}

.border-gradient {
    border: 1px solid;
    border-image: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) 1;
}
