:root {
    /* --- 1. ТҮСТӨР ПАЛИТРАСЫ (Deep Dark Modern) --- */
    --primary: #6366f1;       /* Indigo 500 - Негизги акцент */
    --primary-dark: #4338ca;  /* Indigo 700 */
    --primary-light: #818cf8; /* Indigo 400 */
    --secondary: #a855f7;     /* Purple 500 */
    --accent: #10b981;        /* Emerald 500 */
    --danger: #ef4444;        /* Red 500 */
    --warning: #f59e0b;       /* Amber 500 */
    
    /* Фондор (Dark Theme) */
    --bg-body: #0f172a;            /* Slate 900 - Негизги фон */
    --bg-sidebar: #1e293b;         /* Slate 800 - Сайдбар */
    --bg-card: rgba(30, 41, 59, 0.7); /* Айнек сымал кара */
    --bg-input: #020617;           /* Slate 950 - Инпуттар үчүн */
    --bg-hover: rgba(255, 255, 255, 0.05);

    /* Текст */
    --text-main: #f8fafc;     /* Slate 50 - Негизги текст (Ак) */
    --text-muted: #94a3b8;    /* Slate 400 - Экинчи текст (Боз) */
    --text-light: #64748b;    /* Slate 500 - Өтө боз */
    --white: #ffffff;

    /* Көлөкөлөр (Dark Mode Shadows) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3); 

    /* Чектер (Borders) */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Анимация */
    --anim-fast: all 0.2s ease;
    --anim-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --anim-elastic: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    /* Фондогу жеңил градиент */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
}

/* Скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================
   2. LAYOUT & SIDEBAR
   ========================================= */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: var(--border-subtle);
    color: var(--white);
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--anim-smooth);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: var(--shadow-glow);
    transition: var(--anim-elastic);
}

.sidebar-header:hover .logo-box {
    transform: rotate(10deg) scale(1.05);
}

.sidebar h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
}
.sidebar h2 span { color: var(--primary); }

/* Навигация */
nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--anim-smooth);
    position: relative;
}

.nav-btn i { font-size: 1.2rem; transition: var(--anim-elastic); }

.nav-btn:hover {
    background: var(--bg-hover);
    color: var(--white);
    padding-left: 22px;
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    border-left: 3px solid var(--primary);
    color: var(--primary-light);
}

.nav-btn.active i { color: var(--primary); transform: scale(1.1); }

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: var(--border-subtle);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--anim-smooth);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* =========================================
   3. MAIN CONTENT
   ========================================= */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeDown 0.6s ease-out;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}
.welcome-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.user-pill {
    background: var(--bg-sidebar);
    border: var(--border-subtle);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--anim-smooth);
}

.user-pill img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-pill span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================
   4. SECTIONS & BUTTONS
   ========================================= */
.admin-section {
    display: none;
    animation: fadeUp 0.5s ease-out forwards;
}
.admin-section.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern Buttons */
.add-btn, .save-btn {
    margin: 30px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--anim-elastic);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    font-size: 0.9rem;
}

.add-btn:hover, .save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.save-btn { width: 100%; justify-content: center; margin-top: 20px; }

/* =========================================
   5. ASSETS MANAGEMENT
   ========================================= */
#assets-management {
    padding: 25px;
    background: var(--bg-card);
    border-radius: 24px;
    border: var(--border-subtle);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.category-title {
    margin: 30px 0 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 10px;
}

/* Grid Layout */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.asset-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: var(--border-subtle);
    transition: var(--anim-smooth);
}

.asset-item:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.asset-item span {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.asset-item .edit-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--anim-smooth);
}

.asset-item .edit-btn:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   6. RESUME & PROJECTS
   ========================================= */

#project-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 40px;
}

/* PDF Preview Card */
.pdf-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: var(--border-subtle);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    transition: var(--anim-smooth);
}

.pdf-preview i {
    font-size: 3rem;
    color: var(--danger);
}

.pdf-details strong {
    color: var(--text-main);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.pdf-details span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.view-pill {
    margin-left: auto;
    padding: 10px 24px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--anim-smooth);
}

.view-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* DROP ZONE */
.drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    transition: var(--anim-smooth);
    text-align: center;
    margin-bottom: 2rem;
}

.drop-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drop-area i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.drop-area p {
    color: var(--text-muted);
}

/* PROJECT ITEMS */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 18px;
    border: var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--anim-smooth);
}

.list-item:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.item-info { display: flex; align-items: center; gap: 20px; }

.item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.item-info span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.item-info span small {
    font-size: 0.75rem;
    color: var(--secondary);
    background: rgba(168, 85, 247, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    width: fit-content;
    text-transform: uppercase;
}

.item-actions { display: flex; gap: 10px; }

.edit-btn, .delete-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--anim-smooth);
    font-size: 1.1rem;
}

.edit-btn { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.edit-btn:hover { background: var(--primary); color: white; }

.delete-btn { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }
.delete-btn:hover { background: #ef4444 !important; color: white !important; }

/* =========================================
   7. MODALS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active { display: flex !important; }

.modal-content {
    background: #1e293b; /* Solid Dark Color for Modal */
    padding: 2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; display: block; }

.modern-input {
    resize: none;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    background: var(--bg-input);
    color: var(--white);
    transition: var(--anim-smooth);
}

.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.modal-actions { display: flex; gap: 12px; margin-top: 10px; }
.confirm-btn, .cancel-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.cancel-btn { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.cancel-btn:hover { background: rgba(255,255,255,0.1); color: white; }

.confirm-btn { background: var(--primary); color: white; }
.confirm-btn:hover { background: var(--primary-dark); }

/* Image Picker in Modal */
#folder-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
    margin-bottom: 20px;
}

.img-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-input);
    border: 2px solid transparent;
    cursor: pointer;
}

.img-item:hover, .img-item.selected {
    border-color: var(--primary);
    transform: scale(0.98);
}

.img-item img {
    width: 100%; height: 80px; object-fit: cover;
    opacity: 0.8;
}
.img-item:hover img { opacity: 1; }

.img-item p {
    font-size: 0.75rem; color: var(--text-muted);
    padding: 6px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================
   8. LOGIN SCREEN
   ========================================= */
/* =========================================
   LOGIN SCREEN - ULTRA MODERN DARK STYLE
   ========================================= */

/* 1. Негизги контейнер - экранды толук ээлейт */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 100%);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

/* 2. Кирүү картасы (Glassmorphism) */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: loginFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Логотип (Анимацияланган) */
.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transform: rotate(-5deg);
    transition: var(--anim-elastic);
}

.login-card:hover .login-logo {
    transform: rotate(0deg) scale(1.1);
}

/* 4. Тексттер */
.login-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* 5. Инпуттардын тобу (Input Groups) */
.input-group {
    position: relative;
    margin-bottom: 1.2rem;
    text-align: left;
}

/* Иконкаларды инпуттун ичине жайгаштыруу */
.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    transition: var(--anim-smooth);
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px; /* Сол жагынан иконка үчүн орун */
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: var(--anim-smooth);
}

.input-group input::placeholder {
    color: #475569;
}

/* Фокус болгондогу эффект */
.input-group input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-group input:focus + i {
    color: var(--primary-light);
}

/* 6. Кирүү баскычы */
.login-btn {
    width: 100%;
    padding: 16px;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--anim-elastic);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

/* =========================================
   MOBILE ADAPTIVE (320px - 480px)
   ========================================= */

@media (max-width: 480px) {
    .login-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 14px 14px 14px 45px;
        font-size: 0.95rem;
    }
}

/* Эң кичине экрандар (iPhone 5/SE - 320px) */
@media (max-width: 320px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 2rem 1.2rem;
    }

    .login-card h2 {
        font-size: 1.3rem;
    }

    .login-card p {
        font-size: 0.85rem;
        margin-bottom: 1.8rem;
    }
}

/* =========================================
   9. MOBILE RESPONSIVE (320px - 768px)
   ========================================= */

/* Планшет жана чоң телефондор (768px төмөн) */
@media (max-width: 780px) {
.class {
    flex-direction: column;
    gap: 1px;
}
}
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }
    .sidebar h2, .nav-btn span, .version-tag { display: none; }
    .logo-box { margin: 0 auto; }
    .sidebar-header { justify-content: center; margin-bottom: 2rem; }
    .nav-btn { justify-content: center; padding: 14px; }
    .nav-btn:hover { padding-left: 14px; }
    .logout-btn span { display: none; }
    
    .content { padding: 1.5rem; }
    
    .pdf-preview { flex-direction: column; text-align: center; }
    .view-pill { margin: 10px auto 0; width: 100%; justify-content: center; }
}

/* Мобилдик телефондор (480px жана андан ылдый - iPhone SE ж.б.) */
@media (max-width: 480px) {
    .admin-container {
        flex-direction: column;
        padding-bottom: 70px; /* Төмөнкү меню үчүн орун */
    }

    /* Сайдбарды ылдыйкы навигацияга айлантуу */
    .sidebar {
        position: fixed;
        bottom: 0; top: auto;
        left: 0;
        width: 100%; height: 65px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    }

    .sidebar-header, .sidebar-footer, .version-tag { display: none; }
    
    nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .nav-btn {
        width: auto;
        padding: 10px;
        background: transparent !important;
        border: none !important;
    }

    .nav-btn i { font-size: 1.4rem; color: var(--text-muted); }
    .nav-btn.active i { color: var(--primary); transform: translateY(-5px); }
    .nav-btn:hover { padding-left: 10px; background: transparent; }

    /* Контент */
    .content { padding: 1rem 1rem 100px 1rem; height: auto; overflow: visible; }
    
    .top-bar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .user-pill { width: 100%; justify-content: flex-start; }

    .assets-grid { grid-template-columns: 1fr; }
    
    /* Тизме элементтери */
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px;
    }
    
    .item-info { width: 100%; }
    .item-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px dashed rgba(255,255,255,0.1);
    }

    /* Модалдык терезе */
    .modal { padding: 10px; align-items: flex-end; }
    .modal-content {
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-actions { flex-direction: column; }
    .cancel-btn { order: 2; }
    .confirm-btn { order: 1; }
    
    /* Buttons */
    .add-btn { width: 100%; justify-content: center; margin: 15px 0; }
}
.save-btn {
    width: 150px;
}
.section-header {
    margin-bottom: 10px;
}
/* Эң кичине экрандар үчүн (320px) */
@media (max-width: 320px) {
    .welcome-text h2 { font-size: 1.5rem; }
    .item-info span { font-size: 0.9rem; }
    .item-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .modal-content { padding: 1rem; }
    .pdf-preview { padding: 1rem; }
}
.input-group-dark {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.input-group-dark .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
}

/* Сактоо баскычын чоңойтуу */
.save-btn {
    background: linear-gradient(135deg, var(--accent), #059669) !important;
    margin-top: 20px;
    height: 55px;
}