/* ============================================================
   PANEL ADMIN - ESTILOS COMPLETOS
   Diseño moderno tipo dashboard con sidebar y cards
   +1100 líneas de CSS puro
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --youtube: #ff0000;
    --whatsapp: #25d366;
    --github: #24292e;

    --bg-body: #f1f5f9;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.06);
    --bg-sidebar-active: rgba(37, 99, 235, 0.2);
    --bg-card: #ffffff;
    --bg-input: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --text-sidebar: rgba(255, 255, 255, 0.7);
    --text-sidebar-active: #ffffff;

    --border-color: #e2e8f0;
    --border-focus: #2563eb;

    --gradient-primary: linear-gradient(135deg, #2563eb, #7c3aed);
    --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font-main: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --sidebar-width: 260px;
    --topbar-height: 64px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- LOGIN SCREEN ---- */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: floatLogin 8s ease-in-out infinite;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: floatLogin 10s ease-in-out infinite reverse;
}

@keyframes floatLogin {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

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

.login-header {
    margin-bottom: 32px;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.login-header h1 {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-google:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.btn-google:active {
    transform: translateY(-1px);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 13px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---- ADMIN LAYOUT ---- */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-normal);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    color: var(--text-sidebar);
    font-size: 18px;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-sidebar);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    transition: height var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--bg-sidebar-hover);
    color: white;
}

.sidebar-link.active {
    background: var(--bg-sidebar-active);
    color: var(--text-sidebar-active);
}

.sidebar-link.active::before {
    height: 24px;
}

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

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.sidebar-user strong {
    display: block;
    color: white;
    font-size: 13px;
    font-family: var(--font-main);
}

.sidebar-user span {
    font-size: 11px;
    color: var(--text-sidebar);
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-input);
    color: var(--primary);
}

.top-bar-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-input);
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

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

/* ---- CONTENT SECTIONS ---- */
.content-section {
    display: none;
    padding: 28px;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

.content-section h3 {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.stat-visits::before { background: var(--gradient-primary); }
.stat-whatsapp::before { background: var(--whatsapp); }
.stat-github::before { background: var(--github); }
.stat-youtube::before { background: var(--youtube); }

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

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.stat-visits .stat-card-icon { background: var(--gradient-primary); }
.stat-whatsapp .stat-card-icon { background: var(--whatsapp); }
.stat-github .stat-card-icon { background: var(--github); }
.stat-youtube .stat-card-icon { background: var(--youtube); }

.stat-card-number {
    display: block;
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- DASHBOARD GRID ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dash-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.dash-card h3 i {
    color: var(--primary);
}

/* Chart Bars */
.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bar-label {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-main);
}

.bar-track {
    flex: 1;
    height: 28px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
    min-width: 4px;
}

.bar-value {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-main);
}

/* Popular Projects */
.popular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.popular-views {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-data {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

/* ---- PROJECTS TABLE ---- */
.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.projects-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.projects-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}

.projects-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.projects-table tr:hover td {
    background: var(--bg-input);
}

.project-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.project-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.project-cell strong {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
}

.desc-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.views-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.btn-edit {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

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

.btn-delete {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

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

.table-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.table-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ---- 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: 200;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

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

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

.modal-header h3 {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

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

.modal form {
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

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

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-cancel {
    padding: 10px 20px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-save {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* ---- MESSAGES ---- */
.messages-list {
    display: grid;
    gap: 16px;
}

.message-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

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

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.message-header strong {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-primary);
}

.message-date {
    font-size: 12px;
    color: var(--text-muted);
}

.message-email {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.message-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.btn-delete-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

/* ---- SETTINGS ---- */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.settings-card h4 {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h4 i {
    color: var(--primary);
}

.settings-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.settings-card code {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary);
}

.auth-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.auth-user-item i {
    color: var(--success);
    font-size: 18px;
}

.auth-user-item strong {
    display: block;
    font-size: 14px;
    font-family: var(--font-main);
}

.auth-user-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- TOAST ---- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

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

    .content-section {
        padding: 20px 16px;
    }

    .top-bar {
        padding: 0 16px;
    }

    .projects-table {
        font-size: 13px;
    }

    .projects-table th,
    .projects-table td {
        padding: 12px;
    }

    .desc-cell {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }

    .section-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-cancel,
    .form-actions .btn-save {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ---- SELECTION ---- */
::selection {
    background: rgba(37, 99, 235, 0.2);
}

/* ---- FOCUS ---- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- PRINT ---- */
@media print {
    .sidebar, .top-bar { display: none; }
    .main-content { margin-left: 0; }
}
