/* ============================================
   АДМИНИСТРАТИВЕН ПОРТАЛ - ПРОФЕСИОНАЛЕН CSS
   Професионален, модерен дизайн за admin панел
   ============================================ */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветова палитра - професионална, консервативна */
    --primary-color: #1a3a5f;
    --primary-dark: #0d2338;
    --primary-light: #2d5a8a;
    --secondary-color: #4a6fa5;
    --accent-color: #c9a961;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== NAVBAR ===== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.navbar-logo {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.navbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    margin: 0 auto;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

/* On desktop, allow navbar-user to align to the right */
@media (min-width: 769px) {
    .navbar-menu {
        justify-content: flex-start;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.navbar-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.navbar-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.navbar-link-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.navbar-link-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.navbar-user-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide desktop user menu on mobile */
@media (max-width: 768px) {
    .navbar-user-desktop {
        display: none;
    }
}

/* Show navbar-user on desktop - positioned to the right */
@media (min-width: 769px) {
    .navbar-user {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-left: auto;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
}

.user-info svg {
    width: 18px;
    height: 18px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: var(--bg-white);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

.btn-logout:hover {
    background: #c82333;
    color: var(--bg-white);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    gap: 1rem;
}

.card-header h1,
.card-header h2 {
    margin: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: #3d5d8a;
    color: var(--bg-white);
}

.btn-success {
    background: var(--success-color);
    color: var(--bg-white);
}

.btn-success:hover {
    background: #218838;
    color: var(--bg-white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--bg-white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--bg-white);
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-icon {
    width: 16px;
    height: 16px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--danger-color);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help,
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.text-danger {
    color: var(--danger-color);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 5px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
    font-size: 0.9rem;
}

.alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.badge-published {
    background: #d4edda;
    color: #155724;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.badge-archived {
    background: #e2e3e5;
    color: #383d41;
}

.badge-synced {
    background: #cce5ff;
    color: #004085;
    padding: 0.25rem 0.5rem;
}

.badge-category {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.badge-social {
    background: #e7f3ff;
    color: #004085;
}

.badge-legal {
    background: #fff3cd;
    color: #856404;
}

.badge-initiatives {
    background: #d4edda;
    color: #155724;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.table thead {
    background: var(--bg-light);
}

.table th {
    padding: 0.875rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.article-link {
    color: var(--primary-color);
    font-weight: 500;
}

.article-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.date-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-published .stat-icon {
    color: var(--success-color);
}

.stat-published .stat-value {
    color: var(--success-color);
}

.stat-draft .stat-icon {
    color: var(--warning-color);
}

.stat-draft .stat-value {
    color: var(--warning-color);
}

.stat-archived .stat-icon {
    color: var(--text-light);
}

.stat-archived .stat-value {
    color: var(--text-light);
}

/* ===== ACTION MENU ===== */
.action-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.action-card.action-primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.action-card.action-primary .action-icon,
.action-card.action-primary .action-arrow {
    color: var(--bg-white);
}

.action-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.action-content {
    flex: 1;
}

.action-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.action-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.action-card.action-primary .action-content p {
    color: rgba(255, 255, 255, 0.9);
}

.action-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.filter-tab:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-light);
}

.empty-state svg {
    margin-bottom: 0.875rem;
    width: 64px;
    height: 64px;
}

.empty-state p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.login-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    margin-top: 1.75rem;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    footer {
        padding: 1.25rem;
        margin-top: 2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.875rem 1.25rem;
    }
    
    .container {
        padding: 1.25rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
    }
    
    .navbar-header {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .navbar-title {
        max-width: 180px;
        font-size: 1rem;
    }
    
    .navbar-logo {
        width: 24px;
        height: 24px;
    }
    
    /* Hide default menu on mobile */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 3.5rem 1.25rem 1.5rem;
        gap: 0;
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
    
    .navbar-link svg {
        width: 18px;
        height: 18px;
    }
    
    .navbar-user {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--border-color);
    }
    
    .navbar-user .navbar-link {
        margin-right: 0 !important;
        width: 100%;
    }
    
    .user-info {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem;
        background: var(--bg-light);
        font-size: 0.9rem;
    }
    
    .user-info svg {
        width: 16px;
        height: 16px;
    }
    
    .btn-logout {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-logout svg {
        width: 16px;
        height: 16px;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    .page-header {
        margin-bottom: 1.25rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
        padding: 1rem 1.25rem;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .action-menu {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.25rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
    }
    
    .action-content h3 {
        font-size: 1.1rem;
    }
    
    .action-content p {
        font-size: 0.85rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.625rem 0.5rem;
    }
    
    .table th {
        font-size: 0.85rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .actions .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
    
    .filter-tabs {
        flex-direction: row;
        padding: 1rem 1.25rem;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    .form-help,
    .form-hint {
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .alert-icon {
        width: 16px;
        height: 16px;
    }
    
    .badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .pagination {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .empty-state {
        padding: 2rem 1.5rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.625rem 0.875rem;
    }
    
    .navbar-title {
        font-size: 0.95rem;
        max-width: 140px;
    }
    
    .navbar-logo {
        width: 22px;
        height: 22px;
    }
    
    .mobile-menu-toggle {
        width: 30px;
        height: 30px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .navbar-menu {
        width: 90%;
        max-width: 280px;
        padding: 3rem 1rem 1.25rem;
    }
    
    .navbar-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0.875rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    
    .card-header {
        padding: 0.875rem 1rem;
    }
    
    .card-header h1 {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.375rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .alert {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem 1.25rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-title {
        font-size: 0.85rem;
        max-width: 110px;
    }
    
    .navbar-logo {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle span {
        width: 16px;
        height: 2px;
    }
    
    .navbar-menu {
        width: 95%;
        max-width: 260px;
        padding: 2.75rem 0.875rem 1rem;
    }
    
    .navbar-link {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .navbar-link svg {
        width: 16px;
        height: 16px;
    }
    
    .user-info {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn-logout {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-header h1 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.375rem;
    }
    
    .table th {
        font-size: 0.75rem;
    }
    
    .actions .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    .filter-tabs {
        padding: 0.875rem 1rem;
    }
    
    .filter-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .alert-icon {
        width: 14px;
        height: 14px;
    }
    
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    
    .stat-value {
        font-size: 1.35rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
    }
    
    .action-content h3 {
        font-size: 1rem;
    }
    
    .action-content p {
        font-size: 0.8rem;
    }
    
    .pagination {
        padding: 0.875rem 1rem;
    }
    
    .pagination .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    footer {
        padding: 1.25rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 13px;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    .navbar-title {
        font-size: 0.8rem;
        max-width: 90px;
    }
    
    .navbar-logo {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 26px;
    }
    
    .mobile-menu-toggle span {
        width: 14px;
    }
    
    .navbar-menu {
        width: 100%;
        max-width: 100%;
        padding: 2.5rem 0.75rem 1rem;
    }
    
    .container {
        padding: 0.625rem;
    }
    
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1rem; }
    
    .card-header {
        padding: 0.625rem;
    }
    
    .card-header h1 {
        font-size: 1.15rem;
    }
    
    .btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .table {
        font-size: 0.7rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.25rem;
    }
    
    .alert {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===== NOTIFICATIONS ===== */
.notification {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    padding: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--info-color);
    min-width: 300px;
    max-width: 400px;
}

.notification.notification-success {
    border-left-color: var(--success-color);
}

.notification.notification-error {
    border-left-color: var(--danger-color);
}

.notification.notification-warning {
    border-left-color: var(--warning-color);
}

.notification.notification-info {
    border-left-color: var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-info .notification-icon {
    color: var(--info-color);
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 4px;
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

/* ===== MODAL DIALOG ===== */
.modal-overlay {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-dialog {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-dialog button {
    transition: var(--transition);
}

.modal-dialog button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-dialog button:active {
    transform: translateY(0);
}

/* ===== FORM ERROR STATES ===== */
.form-input.error,
.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.error:focus,
.form-input:invalid:not(:placeholder-shown):focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    transition: var(--transition);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
