/* Dashboard Layout */

/* Reset Filament defaults */
.fi-dashboard-page,
.fi-page {
    background: #f1f1f1 !important;
    padding: 0 !important;
}

.fi-main,
.fi-main-ctn {
    background: #f1f1f1 !important;
    padding: 20px !important;
}

/* Dashboard Container - Flexbox Layout */
.dashboard-container {
    display: flex;
    gap: 20px;
    width: 100%;
    min-height: 100vh;
    align-items: flex-start;
}

/* Left Column: 70% */
.dashboard-left {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 70%;
}

/* Right Column: 30% - Sticky with proper height */
.dashboard-right {
    flex: 0 0 calc(30% - 20px);
    max-width: calc(30% - 20px);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 140px);
}

/* Stats Section */
.stats-section {
    width: 100%;
}

/* Remove any grid wrapper around aviation stats */
.stats-section > div {
    display: flex !important;
    gap: 15px;
    width: 100%;
}

/* Charts Row - Side by Side */
.charts-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.chart-card {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    min-height: 380px;
    max-height: 450px;
}

/* Trends Section */
.trends-section {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    min-height: 380px;
}

/* Activity Card - Fixed height with scrolling */
.activity-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    height: calc(100vh - 140px);
    max-height: 800px;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Remove default widget backgrounds */
.chart-card .fi-section,
.trends-section .fi-section,
.activity-card .fi-section {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100%;
}

/* Hide any default Filament widget wrappers */
.chart-card .fi-wi,
.trends-section .fi-wi,
.activity-card .fi-wi {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Stat Cards */

.aviation-stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    height: 120px;
    flex: 1;
    min-width: 0;
}

.aviation-stat-card .flex {
    width: 100%;
    height: 100%;
}

.stat-label {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: #000000;
}

.stat-value {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 38px;
    color: #c8a652;
}

.stat-description {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    color: #999999;
}

.stat-icon-container {
    width: 45px;
    height: 45px;
    border: 1px solid #c8a652;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Widget Headers */

.widget-header,
.widget-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    height: auto;
}

.widget-title {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: #000000;
}

.widget-header-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.widget-header-activity .widget-title {
    font-size: 24px;
    line-height: 28px;
}

.activity-icon {
    width: 28px;
    height: 28px;
    color: #c8a652;
    flex-shrink: 0;
}

.month-selector-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    min-width: 81px;
    height: 21px;
    border: 1px solid #c8a652;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: #000000;
    cursor: pointer;
    transition: background 0.2s;
}

.month-selector-dropdown:hover {
    background: #f9fafb;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    color: #c8a652;
    transform: rotate(180deg);
}

.widget-divider {
    width: 100%;
    height: 1px;
    background: #555555;
    margin-bottom: 15px;
}

/* Chart Wrappers */

.chart-wrapper,
.chart-wrapper-line,
.chart-wrapper-donut {
    position: relative;
    width: 100%;
    height: 280px;
    padding: 10px;
}

.chart-wrapper canvas,
.chart-wrapper-line canvas,
.chart-wrapper-donut canvas {
    max-height: 280px !important;
    width: 100% !important;
    height: 280px !important;
}

/* Recent Activity */

.activity-list-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    max-height: calc(100vh - 280px);
}

.activity-list-container::-webkit-scrollbar {
    width: 4px;
}

.activity-list-container::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 10px;
}

.activity-list-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.activity-list-container::-webkit-scrollbar-thumb:hover {
    background: #c8a652;
}

.activity-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 42px;
}

.activity-number {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    min-width: 35px;
}

.activity-text {
    flex: 1;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    color: #000000;
}

.activity-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 100px;
}

.status-badge {
    padding: 2px 12px;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 10px;
    background: rgba(137, 217, 97, 0.4);
    color: #3fa60c;
    border: 1px solid #3fa60c;
    white-space: nowrap;
}

.status-accepted {
    background-color: #e0f2fe;
    color: #0369a1;
}
.status-paid {
    background-color: #dcfce7;
    color: #15803d;
}
.status-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.pending {
    background: #d4d4d4;
}

.activity-time {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: #000000;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.empty-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* .customConfirmModal{ */

/* Responsive Design */

/* Desktop (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .dashboard-left {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .dashboard-right {
        flex: 0 0 calc(32% - 20px);
        max-width: calc(32% - 20px);
    }

    .stat-value {
        font-size: 28px;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .dashboard-left {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .dashboard-right {
        flex: 0 0 calc(35% - 20px);
        max-width: calc(35% - 20px);
        max-height: calc(100vh - 120px);
    }

    .activity-card {
        max-height: calc(100vh - 120px);
    }

    .stat-value {
        font-size: 24px;
    }

    .activity-text {
        font-size: 14px;
    }

    .activity-list-container {
        max-height: calc(100vh - 240px);
    }
}

/* Tablet (768px - 1023px) - Stack vertically */
@media (max-width: 1023px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-left,
    .dashboard-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dashboard-right {
        position: relative;
        top: 0;
        max-height: 600px;
    }

    .activity-card {
        max-height: 600px;
    }

    .charts-row {
        flex-direction: column;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .fi-main,
    .fi-main-ctn {
        padding: 10px !important;
    }

    .dashboard-container {
        gap: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 16px;
    }

    .activity-text {
        font-size: 14px;
    }

    .activity-number {
        font-size: 16px;
    }

    .chart-card,
    .trends-section,
    .activity-card {
        padding: 15px;
    }
}
