/* MCN机构后台样式 - Modern MCN Agency Style */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary: #ec4899;
    --secondary-light: #fce7f3;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-width: 240px;
    --header-height: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.layout { display: flex; min-height: 100vh; }

/* Sidebar - MCN Style */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-header {
    padding: 24px 20px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sidebar-logo i {
    font-size: 32px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo h1 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.sidebar-nav { padding: 12px 0; }

.sidebar-nav .nav-title {
    padding: 16px 20px 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
    border-radius: 0 24px 24px 0;
    margin-right: 12px;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(139,92,246,0.3));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(236,72,153,0.2);
}

.sidebar-nav a i { width: 20px; text-align: center; font-size: 16px; }

/* Main Content */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg);
}

/* Header */
.admin-header {
    background: var(--bg-white);
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 16px; }

.header-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-time {
    font-size: 13px;
    color: var(--text-muted);
    font-family: "SF Mono", Monaco, monospace;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info { text-align: right; }
.user-info .name { font-size: 14px; font-weight: 600; color: var(--text); }
.user-info .role { font-size: 12px; color: var(--text-muted); }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.header-actions { display: flex; gap: 8px; }

.header-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.header-btn.home { color: var(--primary); }
.header-btn.logout { color: var(--danger); }
.header-btn.logout:hover { background: var(--danger-light); border-color: var(--danger); }
.header-btn.dashboard { color: #00bcd4; }
.header-btn.dashboard:hover { background: rgba(0, 188, 212, 0.1); border-color: #00bcd4; }

/* Content */
.content { padding: 24px; }

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i { 
    color: var(--primary); 
    font-size: 18px;
}

.card-body { padding: 20px; }

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Stats Cards - MCN Style */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card.green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card.cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.stat-card.pink::before { background: linear-gradient(90deg, #ec4899, #f472b6); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card.blue .stat-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.stat-card.cyan .stat-icon { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; }
.stat-card.pink .stat-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }

.stat-info { flex: 1; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 12px; margin-top: 4px; color: var(--text-muted); }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Tables */
.table-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.table-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.table-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }

.table { width: 100%; border-collapse: collapse; }

.table th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: linear-gradient(90deg, var(--primary-light), transparent); }
.table tbody tr:last-child td { border-bottom: none; }

/* Forms */
.form-section { margin-bottom: 24px; }

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid;
    border-image: var(--primary-gradient) 1;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.form-input:disabled,
.form-select:disabled {
    background: var(--bg);
    cursor: not-allowed;
    color: var(--text-muted);
}

.form-textarea { resize: vertical; min-height: 100px; }

/* Buttons - MCN Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { 
    background: var(--primary-gradient); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover { 
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    color: #fff;
}

.btn-secondary { 
    background: var(--bg); 
    color: var(--text); 
    border: 2px solid var(--border);
}
.btn-secondary:hover { 
    background: var(--border-light); 
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-success { 
    background: linear-gradient(135deg, #10b981, #059669); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-success:hover { 
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
    color: #fff;
}

.btn-danger { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-danger:hover { 
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
    color: #fff;
}

.btn-warning { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.btn-warning:hover { 
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
    color: #fff;
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
}
.btn-outline:hover { 
    background: var(--primary-light); 
    color: var(--primary);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 8px; }

/* Tags - MCN Style */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.tag-default { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: var(--success-light); color: var(--success); }
.tag-warning { background: var(--warning-light); color: var(--warning); }
.tag-danger { background: var(--danger-light); color: var(--danger); }
.tag-info { background: var(--info-light); color: var(--info); }

/* Search */
.search-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-white) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%239ca3af" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 14px center;
    transition: var(--transition);
}

.search-input:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-top: 1px solid var(--border-light);
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
    min-width: 36px;
    text-align: center;
}

.pagination a:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: var(--primary-light);
    transform: translateY(-2px);
}
.pagination .active { 
    background: var(--primary-gradient); 
    color: #fff; 
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.pagination .disabled { color: var(--text-muted); pointer-events: none; opacity: 0.5; }

/* Alerts - MCN Style */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success { background: var(--success-light); color: #065f46; border-left-color: var(--success); }
.alert-danger { background: var(--danger-light); color: #991b1b; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400e; border-left-color: var(--warning); }
.alert-info { background: var(--info-light); color: #1e40af; border-left-color: var(--info); }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.modal-footer { 
    padding: 12px 20px; 
    border-top: 1px solid var(--border-light); 
    display: flex; 
    justify-content: flex-end; 
    gap: 10px; 
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

/* Tabs */
.tabs { border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tabs-nav { display: flex; gap: 0; }

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -2px;
    font-weight: 500;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { 
    color: var(--primary); 
    border-bottom-color: var(--primary); 
    font-weight: 700;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
}

/* Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }

/* Empty */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 64px; opacity: 0.3; margin-bottom: 16px; }
.empty-state p { font-size: 14px; }

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Tool Cards - MCN Style */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

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

.tool-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.tool-card .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* Login - MCN Style */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    padding: 32px;
    text-align: center;
}

.login-header i { 
    font-size: 48px; 
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-header h1 { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.login-header p { font-size: 13px; opacity: 0.9; margin-top: 6px; }

.login-body { padding: 32px; }
.login-footer { 
    padding: 16px 32px; 
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%); 
    text-align: center; 
    font-size: 12px; 
    color: var(--text-muted); 
    border-top: 1px solid var(--border-light);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-action-btn i { font-size: 16px; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .stat-cards { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .table-container { overflow-x: auto; }
    .table { min-width: 700px; }
    .header-time { display: none; }
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mr-8 { margin-right: 8px; }
.p-0 { padding: 0; }
