/* KUKU Farm Management System - Professional CSS */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 0.5rem;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --box-shadow-strong: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    --animation-duration: 0.6s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-content.no-nav {
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6c757d;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border-radius: 50%;
    color: white;
}

.stat-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-weight: 500;
}

.stat-content small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--secondary-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Text Utilities */
.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===== ANIMATIONS & TRANSITIONS ===== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Load Animations */
body {
    animation: fadeInUp 0.6s ease-out;
}

.page-header {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stats-grid {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Card Animations */
.card {
    transition: var(--transition);
    animation: fadeInScale 0.6s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Button Animations */
.btn {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn:active {
    transform: translateY(0);
    transition: var(--transition-fast);
}

/* Loading Animation for Buttons */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stat Card Animations */
.stat-card {
    transition: var(--transition);
    animation: bounceIn 0.8s ease-out both;
    cursor: pointer;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stat-card:hover .stat-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* Form Animations */
.form-group {
    animation: slideInLeft 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Table Row Animations */
.table tbody tr {
    animation: fadeInUp 0.5s ease-out both;
}

.table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.table tbody tr:nth-child(5) { animation-delay: 0.3s; }

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
    transition: var(--transition);
}

/* Navigation Animations */
.nav-link {
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    animation: slideInRight 0.3s ease-out;
}

/* Alert Animations */
.alert {
    animation: slideInLeft 0.5s ease-out;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    animation: bounceIn 0.6s ease-out;
}

.alert-danger {
    border-left-color: var(--danger-color);
    animation: bounceIn 0.6s ease-out;
}

.alert-warning {
    border-left-color: var(--warning-color);
    animation: bounceIn 0.6s ease-out;
}

.alert-info {
    border-left-color: var(--primary-color);
    animation: bounceIn 0.6s ease-out;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Chart Container Animations */
.chart-container {
    animation: fadeInScale 0.8s ease-out 0.6s both;
}

/* Staggered Card Loading */
.dashboard-grid > .card,
.stats-grid > .stat-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out both;
}

/* Input Focus Animations */
.form-control {
    transition: var(--transition);
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Badge Animations */
.badge {
    animation: fadeInScale 0.4s ease-out;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.1);
}

/* Additional Animation Classes */
.fade-in {
    animation: fadeInUp var(--animation-duration) var(--animation-timing) both;
}

.fade-in-scale {
    animation: fadeInScale var(--animation-duration) var(--animation-timing) both;
}

.slide-in-left {
    animation: slideInLeft var(--animation-duration) var(--animation-timing) both;
}

.slide-in-right {
    animation: slideInRight var(--animation-duration) var(--animation-timing) both;
}

.bounce-in {
    animation: bounceIn var(--animation-duration) var(--animation-timing) both;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    }
    to {
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

/* Interactive Elements */
.interactive-card {
    transition: var(--transition);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--box-shadow-strong);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Notification Animations */
.notification-enter {
    animation: slideInRight 0.5s ease-out;
}

.notification-exit {
    animation: slideInRight 0.5s ease-out reverse;
}

/* Progress Indicators */
.progress-animated {
    position: relative;
    overflow: hidden;
}

.progress-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ===== DASHBOARD STYLES ===== */

.stat-large {
    font-size: 2.5em;
    font-weight: bold;
    margin: 15px 0;
    color: var(--secondary-color);
    animation: fadeInScale 0.8s ease-out;
}

/* ===== DASHBOARD LAYOUT ===== */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px); /* Account for header */
}

/* ===== PAGE NAVIGATION ===== */

.page-navigation {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-navigation .btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.page-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .page-navigation .btn {
        text-align: center;
        justify-content: center;
    }
}

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--secondary-color), #34495e);
    color: white;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px; /* Account for header height */
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.sidebar-nav {
    padding: 0 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    margin-bottom: 0.5rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
}

.sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.sidebar-link:nth-child(2) { animation-delay: 0.2s; }
.sidebar-link:nth-child(3) { animation-delay: 0.3s; }
.sidebar-link:nth-child(4) { animation-delay: 0.4s; }
.sidebar-link:nth-child(5) { animation-delay: 0.5s; }
.sidebar-link:nth-child(6) { animation-delay: 0.6s; }
.sidebar-link:nth-child(7) { animation-delay: 0.7s; }
.sidebar-link:nth-child(8) { animation-delay: 0.8s; }

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
}



.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }
.module-card:nth-child(6) { animation-delay: 0.6s; }
.module-card:nth-child(7) { animation-delay: 0.7s; }
.module-card:nth-child(8) { animation-delay: 0.8s; }

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(155, 89, 182, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    color: inherit;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:active {
    transform: translateY(-4px) scale(1.01);
}

.module-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.module-card:hover .module-icon {
    transform: scale(1.1);
    opacity: 1;
}

.module-content {
    flex: 1;
}

.module-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.module-content p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.module-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.module-stats span {
    background: rgba(52, 152, 219, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.module-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    margin-left: 1rem;
}

.module-card:hover .module-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Module-specific color schemes */
.chickens-module {
    border-left: 4px solid #27ae60;
}

.chickens-module:hover {
    border-left-color: #229954;
}

.inventory-module {
    border-left: 4px solid #3498db;
}

.inventory-module:hover {
    border-left-color: #2980b9;
}

.sales-module {
    border-left: 4px solid #e74c3c;
}

.sales-module:hover {
    border-left-color: #c0392b;
}

.expenses-module {
    border-left: 4px solid #f39c12;
}

.expenses-module:hover {
    border-left-color: #e67e22;
}

.invoices-module {
    border-left: 4px solid #9b59b6;
}

.invoices-module:hover {
    border-left-color: #8e44ad;
}

.debts-module {
    border-left: 4px solid #e67e22;
}

.debts-module:hover {
    border-left-color: #d35400;
}

.financial-module {
    border-left: 4px solid #16a085;
}

.financial-module:hover {
    border-left-color: #138f7a;
}

.reports-module {
    border-left: 4px solid #34495e;
}

.reports-module:hover {
    border-left-color: #2c3e50;
}

/* ===== RESPONSIVE DASHBOARD LAYOUT ===== */

@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 250px;
    }

    .sidebar-header {
        padding: 0 1.5rem 1.5rem;
    }

    .sidebar-link {
        padding: 0.8rem 1rem;
    }

    .sidebar-icon {
        font-size: 1.5rem;
        width: 35px;
    }

    .sidebar-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    .sidebar-link {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        margin-bottom: 0;
        padding: 1rem 0.5rem;
        text-align: center;
        flex-direction: column;
        border-radius: 0.5rem;
    }

    .sidebar-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: auto;
    }

    .sidebar-content {
        align-items: center;
    }

    .sidebar-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .sidebar-subtitle {
        font-size: 0.75rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .sidebar-link {
        min-width: calc(33.333% - 0.167rem);
        padding: 0.75rem 0.25rem;
    }

    .sidebar-icon {
        font-size: 1.2rem;
    }

    .sidebar-title {
        font-size: 0.8rem;
    }

    .sidebar-subtitle {
        font-size: 0.7rem;
    }

    .dashboard-content {
        padding: 0.75rem;
    }
}

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

    .pulse-animation,
    .float,
    .glow,
    .module-card {
        animation: none !important;
    }

    .module-card:hover {
        transform: none !important;
    }
}