/* Reset and Base Styles */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

/*body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}*/

/* Sidebar */
/*.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    height: 100vh;
    width: 256px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(75, 74, 74, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

    .sidebar.open {
        transform: translateX(0);
    }

.sidebar-header {
    height: 80px;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .sidebar-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: #111622;
    }

.close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background-color: #f3f4f6;
    }

    .close-btn img {
        width: 20px;
        height: 20px;
    }

.sidebar-nav {
    padding: 8px;
    margin-top: 4px;
}

.menu-item-wrapper {
    margin-bottom: 8px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}

    .menu-item:hover {
        background-color: #f9fafb;
    }

    .menu-item.active {
        background-color: #e0eef5;
        color: #0F4C81;
    }

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

.menu-item.active .menu-icon {
    filter: brightness(0) saturate(100%) invert(24%) sepia(61%) saturate(1089%) hue-rotate(174deg) brightness(93%) contrast(93%);
}

.menu-item span {
    font-weight: 600;
    font-size: 14px;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.menu-item.dropdown-open .chevron {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    margin-top: 4px;
}

    .submenu.open {
        display: block;
    }

.submenu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px 8px 56px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 4px;
}

    .submenu-item:hover {
        background-color: #f9fafb;
    }

    .submenu-item.active {
        background-color: #e0eef5;
        color: #0F4C81;
    }*/

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

    .overlay.visible {
        display: block;
    }

/* Main Wrapper */
.main-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}



/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 16px;
    /*margin-left: 205px;*/
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .dashboard-header h1 {
        font-size: 24px;
        font-weight: 700;
        color: #111827;
    }

.subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #e0eef5;
    color: #0F4C81;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    align-self: flex-start;
    transition: background-color 0.2s;
}

    .refresh-btn:hover {
        background-color: #d4e5f0;
    }

    .refresh-btn img {
        width: 16px;
        height: 16px;
    }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.action-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: none;
}

    .action-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .action-icon img {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(1);
    }

.action-card span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collection-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card Styles */
.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

    .card h3 {
        font-size: 14px;
        /*font-weight: 500;*/
        color: #4b5563;
        margin-bottom: 24px;
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

    .card-header h3 {
        font-size: 16px;
        font-weight: 500;
        color: #111827;
        margin-bottom: 0;
    }

.icon-badge {
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-badge.green {
        background-color: #22c55e;
    }

    .icon-badge.orange {
        background-color: #f97316;
    }

    .icon-badge img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

.header-icon {
    width: 20px;
    height: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

    .data-row span {
        font-size: 14px;
        color: #4b5563;
    }

    .data-row .value {
        /*font-weight: 600;*/
        color: #3387E6;
        text-decoration: none !important;
    }
        .data-row .value:hover {
            text-decoration: underline;
        }

.total-row {
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

    .total-row span:first-child {
        font-size: 16px;
        /*font-weight: 600;*/
        color: #111827;
    }

.total-amount {
    font-size: 18px !important;
    /*font-weight: 500 !important;*/
    font-weight:bold;
    color: #0F4C81 !important;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.badge-green {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-green-solid {
    background-color: #dcfce7;
    color: #4b5563;
}

.badge-orange {
    background-color: #fed7aa;
    color: #ea580c;
}

.badge-red {
    background-color: #fca5a5;
    color: white;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #111827;
}

/* View More Button */
.view-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0F4C81;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    padding: 0;
}

    .view-more:hover {
        text-decoration: underline;
    }

    .view-more.center {
        justify-content: center;
        width: 100%;
    }

    .view-more img {
        width: 16px;
        height: 16px;
    }

/* Birthday Card */
.birthday-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
}

.birthday-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.birthday-label {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.birthday-count {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}


/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 12px;
    text-align: center;
}

    .footer p {
        font-size: 14px;
    }

/* Responsive Design */
/*@media (min-width: 640px) {
    .header-info {
        display: block;
    }*/

    /*.quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .refresh-btn {
        padding: 8px 16px;
    }

        .refresh-btn img {
            width: 20px;
            height: 20px;
        }*/
/*}*/

@media (min-width: 768px) {
    .main-content {
        padding: 32px 24px;
    }

    .collection-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .main-content {
        padding: 32px;
        margin-left: 205px;
    }

    .time-info {
        display: block;
    }

    .quick-actions {
        grid-template-columns: repeat(5, 1fr);
    }

    .data-grid {
        grid-template-columns: 2fr 1fr;
    }

    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


    /*@media (min-width: 1400px) {
    .sidebar {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 256px;
    }

    .menu-toggle {
        display: none;
    }

    .close-btn {
        display: none;
    }

    .overlay {
        display: none !important;
    }
}*/
