/* Residents Sidebar Layout */
:root {
    --sidebar-width: 260px;
    --header-height: 60px;
    --primary: #059669;
    --primary-dark: #047857;
    --sidebar-bg: #1f2937;
    --sidebar-hover: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar */
.residents-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.sidebar-logo svg {
    width: 32px;
    height: 32px;
}

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

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
    border-left-color: var(--primary);
}

.nav-item.active {
    background: var(--sidebar-hover);
    color: white;
    border-left-color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-role {
    font-size: 12px;
    color: #9ca3af;
}

/* Main Content */
.residents-layout {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: #f3f4f6;
}

.residents-header {
    background: white;
    padding: 0 30px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.residents-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

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

.residents-content {
    padding: 30px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    cursor: pointer;
    z-index: 999;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .residents-sidebar {
        transform: translateX(-100%);
    }

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

    .residents-layout {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .residents-header {
        padding: 0 15px;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-height);
    }

    .residents-header h1 {
        font-size: 18px;
        margin: 10px 0;
    }

    .header-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .header-actions > * {
        font-size: 13px;
        padding: 6px 12px;
        white-space: nowrap;
    }

    .residents-content {
        padding: 15px;
        padding-bottom: 80px; /* Space for floating button */
    }

    /* Make cards stack on mobile */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Better card responsiveness */
    .bg-white {
        padding: 15px !important;
    }

    /* Stack buttons vertically on very small screens */
    @media (max-width: 480px) {
        .header-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .header-actions > * {
            width: 100%;
            text-align: center;
        }

        /* News card adjustments */
        .news-card {
            padding: 12px !important;
        }

        .news-card h3 {
            font-size: 16px !important;
        }

        .news-card p {
            font-size: 14px !important;
        }

        /* Button groups */
        .flex.gap-2,
        .flex.gap-4 {
            flex-direction: column;
            gap: 8px;
        }

        .flex.gap-2 > *,
        .flex.gap-4 > * {
            width: 100%;
            justify-content: center;
        }
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .residents-header {
        padding: 0 20px;
    }

    .residents-content {
        padding: 25px;
    }

    .header-actions {
        gap: 10px;
    }
}

/* Scrollbar Styling */
.residents-sidebar::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Priority borders for news items */
.priority-urgent { border-left: 4px solid #ef4444; }
.priority-high { border-left: 4px solid #f97316; }
.priority-normal { border-left: 4px solid #3b82f6; }
.priority-low { border-left: 4px solid #9ca3af; }

/* New Classified Button - Responsive */
.btn-new-classified-mobile {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 998;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-new-classified-mobile:hover {
    background: #047857;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
    transform: scale(1.05);
}

.btn-new-classified-mobile:active {
    transform: scale(0.95);
}

.btn-new-classified-desktop {
    display: inline-block;
}

.btn-new-classified-desktop:hover {
    transform: translateY(-2px);
}

.btn-new-classified-desktop:active {
    transform: translateY(0);
}

/* FAB appears below tablet size */
@media (max-width: 768px) {
    .btn-new-classified-mobile {
        display: flex !important;
        animation: pulse-subtle 2s ease-in-out infinite;
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
    }
}
/* Cache bust: 1761233001 */
/* Updated: 1761233069 */
