/* CivicWatch KE - Global Styles (Refactored) */

:root {
    /* Colors - High Contrast & Trust */
    --primary: #1f4788;
    /* Deep Navy */
    --primary-light: #2d5fa8;
    --primary-dark: #163560;

    --accent: #00a651;
    /* Kenyan Green */
    --accent-light: #2bb870;
    --accent-dark: #007a3a;

    --text-main: #1a1a1a;
    /* High contrast body text (User Fix #6) */
    --text-muted: #555555;
    /* Accessible gray */
    --text-light: #ffffff;

    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #121212;

    --border-color: #e5e7eb;

    /* Typography (User Fix #1) */
    --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Spacing (User Fix #9 - Vertical Rhythm) */
    --space-unit: 1rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Layout */
    --container-width: 1200px;
    --content-max-width: 75ch;
    /* User Fix #4 */
    --header-height: 70px;
}

/* 1. Reset & Rendering (User Fix #5, #7) */
html {
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* User Fix #5 */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* 2. Base Typography (User Fix #2, #10) */
body {
    font-family: var(--font-stack);
    font-size: 1rem;
    line-height: 1.6;
    /* User Fix #2 */
    color: var(--text-main);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    /* User Fix #7 */
    word-wrap: break-word;
}

/* Responsive Type Scaling (User Fix #10) */
@media (min-width: 768px) {
    body {
        font-size: 1.0625rem;
        /* ~17px on desktop */
    }
}

/* 3. Heading Hierarchy (User Fix #3) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-stack);
    font-weight: 700;
    line-height: 1.25;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

p {
    margin-bottom: var(--space-md);
    max-width: var(--content-max-width);
    /* User Fix #4 */
}

/* 4. Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

.section {
    padding: var(--space-xl) 0;
}

.section-dark {
    background-color: var(--primary);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.bg-image-overlay {
    position: relative;
    z-index: 2;
}

.bg-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 71, 136, 0.85);
    /* Primary color overlay */
    z-index: -1;
}

.hero-bg {
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    max-height: 100%;
    overflow: hidden;
}

.section-cta-bg {
    background-image: url('../assets/images/section.png');
    background-size: cover;
    background-position: center;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--text-light);
    /* Override for contrast */
}

/* 5. Navigation (Replaces Tailwind classes) */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.desktop-nav {
    display: none;
    /* Mobile First */
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 0.375rem;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* 6. Footer (User Fix #8) */
footer {
    background-color: var(--primary);
    color: white;
    padding: var(--space-xl) 0;
    margin-top: auto;
    font-size: 1rem;
    /* Inherit base size, don't shrink too much */
}

footer h4 {
    color: var(--accent);
    margin-top: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 7. Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-breathing {
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(0, 166, 81, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0);
    }
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: currentColor;
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* Better contrast on light bg */
}

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

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

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    /* Darker grey */
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-sm,
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-logo {
    max-width: 150px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-hover:hover .text-accent {
    gap: 0.75rem;
}

.read-more-arrow {
    transition: transform 0.3s ease;
}

.card-hover:hover .read-more-arrow {
    transform: translateX(5px);
}

/* Elegant Card Action Links */
.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), gap 0.3s ease;
}

.card-action-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-action-link:hover::after {
    width: 100%;
}

.card-action-link:hover {
    color: var(--primary);
    gap: 0.75rem;
}

.card-action-link .link-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.card-action-link:hover .link-icon {
    transform: translateX(4px);
}

/* External link variant — icon rotates slightly */
.card-action-link--external:hover .link-icon {
    transform: translate(2px, -2px);
}

/* Card hover elevates the link underline */
.card-hover:hover .card-action-link::after {
    width: 100%;
}

/* 8. Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 9. Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 71, 136, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 10. Alerts & Feedback */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* 11. Progress Steps — Redesigned with connecting line */
.step-progress-wrapper {
    margin-bottom: 3rem;
}

.step-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-progress-header .step-counter {
    font-weight: 700;
    color: var(--primary);
}

.step-progress-header .step-title {
    font-weight: 600;
    color: var(--text-main);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 1rem;
}

/* Connecting track line behind circles */
.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: calc(1rem + 1.25rem);
    right: calc(1rem + 1.25rem);
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    z-index: 0;
}

/* Animated fill line */
.step-indicator::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: calc(1rem + 1.25rem);
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 4px;
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: var(--progress-width, 0%);
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid #e5e7eb;
    position: relative;
}

.step-item.active .step-circle {
    background-color: white;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.15);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s, font-weight 0.3s;
}

.step-item.active .step-label {
    color: var(--accent);
    font-weight: 700;
}

.step-item.completed .step-label {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.7rem;
    }

    .step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .step-indicator::before,
    .step-indicator::after {
        top: 1rem;
    }
}

/* 12. Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: white;
    background-color: var(--text-muted);
}

/* 13. Admin Dashboard Layout */
.admin-sidebar {
    background-color: var(--primary);
    background-image: linear-gradient(180deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    height: 100vh;
    padding: 0;
    position: fixed;
    width: 250px;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

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

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-sidebar.collapsed {
    width: 80px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    margin: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar a i {
    min-width: 24px;
    margin-right: 15px;
    font-size: 1.1rem;
    text-align: center;
    transition: margin 0.3s ease;
}

.admin-sidebar.collapsed a {
    justify-content: center;
    padding: 0.85rem;
    margin: 0.25rem 0.5rem;
}

.admin-sidebar.collapsed a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.admin-sidebar.collapsed .sidebar-text,
.admin-sidebar.collapsed .sidebar-brand small {
    display: none;
}

.admin-sidebar.collapsed .sidebar-brand h2 {
    display: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-sidebar a.active {
    background-color: var(--accent);
    color: white;
}

/* Sidebar Categories & Dropdowns */
.sidebar-category-label {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .sidebar-category-label {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    margin: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.sidebar-dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-dropdown-trigger i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.sidebar-dropdown-trigger.open i:last-child {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 0.75rem;
    border-radius: 0.5rem;
}

.sidebar-dropdown-trigger.open+.sidebar-submenu {
    max-height: 500px;
}

.sidebar-submenu a {
    padding: 0.75rem 1rem 0.75rem 3rem;
    margin: 0.125rem 0;
    font-size: 0.9rem;
}

.admin-sidebar.collapsed .sidebar-dropdown-trigger {
    justify-content: center;
    padding: 0.85rem;
    margin: 0.25rem 0.5rem;
}

.admin-sidebar.collapsed .sidebar-dropdown-trigger span .sidebar-text,
.admin-sidebar.collapsed .sidebar-dropdown-trigger i:last-child {
    display: none;
}

.admin-sidebar.collapsed .sidebar-submenu {
    display: none;
}

.admin-main {
    margin-left: 250px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background-color: #f1f5f9;
}

.admin-sidebar.collapsed~.admin-main {
    margin-left: 80px;
}

/* Admin Card Enhancements */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Premium Table Styling */
.table,
.moderation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 1rem;
}

.table th,
.moderation-table th {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.table td,
.moderation-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

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

.table tr:hover,
.moderation-table tr:hover {
    background-color: #f8fafc;
}

/* Badge Enhancements */
.badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
    }

    .admin-sidebar .sidebar-text,
    .admin-sidebar .sidebar-brand h2,
    .admin-sidebar .sidebar-brand small,
    .admin-sidebar .sidebar-category-label,
    .admin-sidebar .sidebar-submenu,
    .admin-sidebar .sidebar-dropdown-trigger i:last-child {
        display: none;
    }

    .admin-sidebar a {
        justify-content: center;
        padding: 0.85rem;
        margin: 0.25rem 0.5rem;
    }

    .admin-sidebar a i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .admin-sidebar .sidebar-dropdown-trigger {
        justify-content: center;
        padding: 0.85rem;
        margin: 0.25rem 0.5rem;
    }

    .admin-main {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar a {
        display: inline-flex;
        margin: 0 0.25rem;
        padding: 0.6rem 1rem;
    }

    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
}