/* Modern Dashboard Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --background-light: #f5f7fb;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
}

/* Dashboard Container & Layout */
.dashboard-container {
    background-color: var(--background-light);
    padding: 40px 0;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--primary-gradient);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.dashboard-header .header-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dashboard-header .header-content p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* Sidebar Styling */
.dashboard-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.menu-section {
    margin-bottom: 28px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    letter-spacing: 0.6px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 6px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.menu-link i {
    width: 18px;
    text-align: center;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.menu-link span {
    flex: 1;
}

.menu-link:hover {
    background-color: #f0f3fa;
    color: var(--primary-color);
}

.menu-link:hover i {
    color: var(--primary-color);
}

.menu-link.active {
    background-color: #f0f3fa;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 11px;
}

.menu-link.active i {
    color: var(--primary-color);
}

.menu-section-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.logout-link {
    color: #e74c3c;
}

.logout-link i {
    color: #e74c3c;
}

.logout-link:hover {
    background-color: #fee;
    color: #c0392b;
}

.logout-link:hover i {
    color: #c0392b;
}

/* Main Content */
.dashboard-main {
    /* Will be filled by page-specific styles */
}

/* Cards & Sections */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #d0d0d0;
    background: #f5f7fb;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Tables */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    background: transparent;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-secondary);
}

.dashboard-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #cfe2ff;
    color: #084298;
}

.status-delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

/* Alerts */
.alert {
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    border-left: 4px solid;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-danger {
    background: #fef5f5;
    color: #842029;
    border-left-color: #e74c3c;
}

.alert-danger i {
    color: #e74c3c;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-success i {
    color: #22c55e;
}

.alert-warning {
    background: #fefce8;
    color: #854d0e;
    border-left-color: #eab308;
}

.alert-warning i {
    color: #eab308;
}

.alert-content h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 700;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.alert li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.info-card {
    padding: 18px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #e0e0e0;
    background: #f5f7fb;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

/* Empty State */
.empty-state {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 80px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 60px;
    color: #e8e8e8;
    margin-bottom: 24px;
    display: block;
}

.empty-state h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 28px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        position: static;
    }

    .dashboard-header .header-content h1 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .dashboard-card,
    .profile-card {
        padding: 20px;
    }
}
