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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    line-height: 1.5;
    overflow-x: hidden;

    --bs-primary: #223856;
    --bs-primary-rgb: 34, 56, 86;
}
.bg-lightColor {
    background-color: #f3f5fd;
}


/* Hamburger Menu */
.hamburger-menu {
    cursor: pointer;
    color: #223856;
    font-size: 20px;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.hamburger-menu i {
    color: #223856;
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ef787d;
}

.hamburger-menu:hover i {
    color: #ef787d;
}

/* Sidebar Styles */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #223856 0%, #030609 100%);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

/* Sidebar Header */
.sidebar-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-logo img {
    height: 30px;
    width: auto;
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
}

/* Custom Scrollbar for Sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #111C2B;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #919CAB;
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #D3D7DD;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    padding-left: 28px;
    color: #D3D7DD;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.menu-item:hover .menu-text {
    color: #ffffff;
}

.menu-item.active {
    color: #ef787d;
}

.menu-item.active .menu-icon {
    color: #ef787d;
}

.menu-icon {
    font-size: 20px;
    min-width: 20px;
    text-align: center;
    color: #D3D7DD;
    transition: color 0.3s ease;
}

.menu-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.menu-text {
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    color: #D3D7DD;
}

.menu-item.active .menu-text {
    color: #ef787d;
}

.sidebar.collapsed .menu-item {
    padding: 14px 18px;
    padding-left: 22px;
    justify-content: center;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 270px;
    transition: margin-left 0.3s ease;
    background-color: #F9FAFB;
    min-height: 100vh;
    overflow-x: hidden;
    width: calc(100% - 270px);
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .header-left img {
        width: 24px;
        height: 24px;
    }

.header-title {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 24px;
    color: #000000;
}

.add-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1e84f2;
    color: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 8px 24px 8px 36px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .add-button:hover {
        background-color: #1a73d9;
    }

    .add-button img {
        width: 16px;
        height: 16px;
    }

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

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

.fire-stations-count {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 15px;
    color: rgba(0, 0, 0, 0.64);
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px 8px 44px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 17px;
    color: rgba(0, 0, 0, 0.4);
    width: 200px;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
}

.filter-button {
    background-color: #f4f4f4;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .filter-button:hover {
        background-color: #e0e0e0;
    }

    .filter-button img {
        width: 24px;
        height: 24px;
    }

/* Table Styles */
.table-container {
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

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

.table-header {
    background-color: #e6e6e6;
}

    .table-header th {
        font-size: 12px;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        line-height: 15px;
        color: #000000;
        text-align: left;
        padding: 14px 16px;
        border-right: 1px solid #b5b5b5;
    }

        .table-header th:last-child {
            border-right: none;
        }

.table-row {
    border-bottom: 1px solid #e0e0e0;
}

    .table-row:nth-child(even) {
        background-color: #f9f9f9;
    }

    .table-row:nth-child(odd) {
        background-color: #ffffff;
    }

.table-cell {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 17px;
    color: #000000;
    padding: 16px;
    border-right: 1px solid #e0e0e0;
}

    .table-cell:last-child {
        border-right: none;
    }

.actions-cell {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 16px;
}

.action-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

    .action-icon:hover {
        opacity: 0.7;
    }

    .view-action {
        width: 22px;
        height: 22px;
        filter: brightness(0.9);
    }
    
    .view-action:hover {
        filter: brightness(1);
        transform: scale(1.1);
    }

/* Pagination */
/* --- Custom Pagination Layout for Fire Stations --- */
.pagination-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
}
.pagination-left {
    display: flex;
    align-items: center;
}
.pagination-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pagination-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 220px;
}
/* Remove/override old conflicting rules */
.pagination {
    justify-content: initial;
    margin-top: 0;
}

.show-in-page {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 17px;
    color: rgba(0, 0, 0, 0.64);
}

.next-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 20px;
    color: #1e1e1e;
    cursor: pointer;
    padding: 0 12px;
}

    .next-button img {
        width: 16px;
        height: 16px;
    }

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

    .sidebar.collapsed {
        width: 70px;
    }
    .sidebar-logo {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .menu-text {
        opacity: 0;
        width: 0;
        display: none;
    }

    .menu-item {
        padding: 14px 18px;
        padding-left: 22px;
        justify-content: center;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}

@media (max-width: 768px) {
    .sidebar-logo img {
        height: 26px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .header-title {
        font-size: 18px;
    }

    .add-button {
        padding: 6px 16px 6px 24px;
        font-size: 14px;
    }

    .search-input {
        width: 150px;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 800px;
    }

    .pagination {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sidebar-logo img {
        height: 24px;
    }

    .hamburger-menu {
        font-size: 18px;
        padding: 6px;
    }

    .sidebar {
        height: 100vh;
    }

    .main-content {
        padding: 12px;
        min-height: calc(100vh - 56px);
    }

    .content-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .search-controls {
        width: 100%;
        justify-content: space-between;
    }

    .search-input {
        width: calc(100% - 50px);
    }
}



