:root {
    --brand: #f5ab0c;
    --bg: #f7f7f7;
    --card: #fff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --chip: #f1f5f9;
 
    --accent-color: #20c997;
    --danger-color: #e53935;
    --warning-color: #fdd835;
    --background-color: #f7f7f7;
    --sidebar-color: #1e1e1e;
    --card-color: #fff;
    --text-color: #e0e0e0;
    --text-muted-color: #9e9e9e;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-weight: 600;
    font-family: 'Leckerli One', cursive;
    font-size: 1.5rem;
}

.sidebar-content{
    background-color: transparent;
}

/* Search */
.search-wrap {
    flex: 1;
    max-width: 90%;
}

.search-input {
    background: #f1f1f1;
    border: 1px solid transparent;
}

.search-input:focus {
    background: #fff;
    border-color: var(--border);
    box-shadow: none;
}

/* Category chips */
.chips {
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.chip {
    white-space: nowrap;
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .8rem;
    font-size: .9rem;
}

.chip.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* Masonry layout using CSS columns */
.masonry {
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Responsive columns */
@media (min-width:576px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width:768px) {
    .masonry {
        column-count: 3;
    }
}

@media (min-width:992px) {
    .masonry {
        column-count: 4;
    }
}

@media (min-width:1200px) {
    .masonry {
        column-count: 5;
    }
}

.pin-card {
    border-radius: 4px;
    overflow: hidden;
    background: var(--card);
    border: none;
}

.pin-media {
    position: relative;
}

.pin-media img {
    width: 100%;
    height: auto;
    display: block;
}

.pin-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
}

.pin-save {
    background: var(--brand);
    border-color: var(--brand);
}

.pin-footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem .75rem;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.user-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #222;
    /* Bootstrap primary */
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;

}

.title {
    font-weight: 600;
    line-height: 1.2;
    margin: .5rem .75rem 0 .75rem;
}

.meta {
    color: var(--muted);
    font-size: .85rem;
    margin: 0 .75rem .5rem .75rem;
}

/* Hover overlay */
.pin-media .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .0) 55%, rgba(0, 0, 0, .35));
    opacity: 0;
    transition: opacity .2s;
}

.pin-card:hover .overlay {
    opacity: 1;
}

/* Floating upload */
.fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    border-radius: 999px;
    padding: .9rem 1.1rem;
    background: var(--brand);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(230, 0, 35, .4);
}

.fab:hover {
    filter: brightness(.95);
}

/* Modal */
.modal-img {
    width: 100%;
    height: auto;
}

/* Hide scrollbar on chips (optional) */
.chips::-webkit-scrollbar {
    height: 8px;
}

.chips::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 999px;
}

/* Left sidebar */
.leftbar {
    position: sticky;
    top: 72px;
}

.leftbar .nav-link {
    color: var(--text);
}

.leftbar .nav-link.active,
.leftbar .nav-link:hover {
    background: var(--text);
    color: #fff;
    border-radius: 4px;
}

.leftbar .nav-link:hover .wardrobe-icon {

    filter: brightness(0) invert(1);
}

.leftbarJP .nav-link:hover {
    background: #8e8e8e;
    color: #fff;
    border-radius: 4px;
}

b {
    font-weight: 600;

}


/* user-home.css */




.navbar .form-control:focus {
    box-shadow: none;
}

/* --- Masonry Grid Layout (The Magic) --- */
.masonry-grid {
    /* Use CSS Columns for the layout */
    column-gap: 1rem;
}

.masonry-item {
    /* Prevents an item from breaking across columns */
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}

/* Responsive column counts */
@media (min-width: 576px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 992px) {
    .masonry-grid {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 5;
    }
}

@media (min-width: 1400px) {
    .masonry-grid {
        column-count: 6;
    }
}


/* --- Individual Pin Styling --- */
.pin-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    /* Removes bottom space from image */
}

/* The overlay that appears on hover */
.pin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    color: white;
}

.masonry-item:hover .pin-overlay {
    opacity: 1;
    /* Show on hover */
}

.pin-overlay-top {
    display: flex;
    justify-content: flex-end;
}

.pin-overlay-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--sidebar-color);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.sidebar .sidebar-header {
    color: #ced4da;
    font-size: 1.0rem;
    padding: 1.5rem 1.5rem .375rem;

}

.sidebar .sidebar-header h3 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-color);
}

.sidebar ul.components {
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar ul li a {
    padding: 15px 25px;
    font-size: 1rem;
    display: block;
    color: var(--text-muted-color);
    border-left: 4px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar ul li.active>a {
    color: var(--accent-color);
    background: rgba(32, 201, 151, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar .sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar .sidebar-footer .btn {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* --- Main Content & Dashboard Styles --- */
.main-content {
    width: 100%;
    padding: 2rem;
    overflow-y: auto;
}

.main-header h1 {
    font-weight: 600;
    font-size: 2rem;
}

.card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    letter-spacing: .5px;
    font-size: 0.9rem;
}

.kpi-card .card-body {
    display: flex;
    align-items: center;
}

.kpi-card .kpi-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
}

.kpi-card .kpi-label {
    color: var(--text-muted-color);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
}

/* Calendar Mockup Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-grid>div {
    padding: 0.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.calendar-grid .day-name {
    font-weight: 600;
    color: var(--text-muted-color);
}

.calendar-grid .day.today {
    background-color: var(--accent-color);
    color: #121212;
    font-weight: 700;
}

.calendar-grid .day.event {
    border: 2px solid var(--accent-color);
}

/* Financial Summary Styles */
.progress {
    height: 1.5rem;

}

.progress-bar {
    background-color: var(--accent-color);
}

.progress-bar.bg-danger {
    background-color: var(--danger-color) !important;
}



/* Accordion Customization */
.accordion-button {
    background-color: #343a40;
    color: var(--text-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: #121212;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(32, 201, 151, 0.25);
}

.accordion-item {
    background-color: var(--card-color);
    border-color: var(--border-color);
}

/* Mini Calendar Styles */
.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.mini-calendar-grid>div {
    padding: 0.25rem;
    font-size: 0.8rem;
}

.mini-calendar-grid .day-name {
    font-weight: 600;
    color: var(--text-muted-color);
    font-size: 0.7rem;
}

.mini-calendar-grid .day.today {
    background-color: var(--accent-color);
    color: #121212;
    font-weight: 700;
    border-radius: 50%;
}

.mini-calendar-grid .day.event {
    border: 1px solid var(--accent-color);
    border-radius: 50%;
}

.mini-calendar-grid .day.other-month {
    opacity: 0.3;
}


/* Airplane */
.airplane-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* Default: below 1200px */
.airplane-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* XL and above (≥1200px) */
@media (min-width: 1200px) {
    .airplane-card .card-img-top {
        height: 280px;
    }
}

.airplane-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #8e8e8e;
}

.airplane-card .card-title {
    margin-bottom: 1rem;
}

/* --- Booking Grid Styles --- */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: auto;
    /* Pushes the grid to the bottom */
    padding-top: 1rem;
    
}

.booking-day {
    width: 100%;
    padding-bottom: 100%;
    /* Creates a square aspect ratio */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.booking-day.booked {
    background-color: #29b6f6;
}

.booking-day.maintenance {
    background-color: #ffa726;
}

.booking-day.today {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}

.booking-legend {
    font-size: 0.8rem;
    color: var(--text-muted-color);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}



/* contacts */
.contact-row {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.contact-row:hover {
    background: #f7f7f7;
    cursor: pointer;
}

.contact-row.active {
    background: #e9f2ff;
}

.contact-title {
    font-weight: 600;
    cursor: pointer;
    
}

.contact-sub {
    font-size: 12px;
    color: #666;
}


/* Sticky footer layout */
.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.content {
    flex: 1 1 auto;
    min-height: 0;
    /* IMPORTANT: allows children to scroll instead of overflowing */
}

footer.footer {
    flex-shrink: 0;
}

/* Contacts page: make the split view fill available space */
.contacts-split {
    flex: 1 1 auto;
    min-height: 0;
    /* IMPORTANT */
}

.contacts-left {
    width: 320px;
    overflow: auto;
    border-right: 1px solid #ddd;
    height: 80vh;
}

.contacts-right {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    /* scroll here, not into the footer */
}

.fc-direction-ltr {
    padding: 1rem;
}


span.nav-link{
    cursor: pointer;
}

.text-grey{
    color:#6b7280!important;
}

.text-grey.active {
    color: #383839 !important;
}

/* Urgent tiles */
.urgent-tile {
    position: relative;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
    padding: 14px 14px 14px 18px;
    min-height: 96px;
}

.urgent-tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    background: #dc3545;
}

.urgent-tile.warn::before {
    background: #f59f00;
}

.urgent-tile .rego {
    font-weight: 800;
    letter-spacing: .02em;
}

.urgent-tile .model {
    color: #6c757d;
    font-size: .9rem;
}

.urgent-tile .job {
    margin-top: 8px;
    font-weight: 600;
}

.urgent-tile .meta {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    color: #6c757d;
    font-size: .9rem;
    align-items: center;
}

.urgent-tile .meta .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    font-weight: 600;
    color: #212529;
}

.urgent-tile .chev {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: #6c757d;
}

/* Grid heatmap */
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .08);
}

.dot-low {
    background: #e7f5ff;
}

.dot-med {
    background: #fff3bf;
}

.dot-high {
    background: #ffd8a8;
}

.dot-over {
    background: #ffa8a8;
}

.maint-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.aircraft-cell {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 260px;
}

.aircraft-thumb {
    width: 84px;
    background: #f1f3f5;
    overflow: hidden;
    flex: 0 0 auto;
}

.aircraft-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aircraft-meta .rego {
    font-weight: 800;
}

.aircraft-meta .model {
    font-size: .9rem;
    color: #6c757d;
}