body {
    background-color: #f5f7fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 90%;
    padding: 20px;
}

.service-btn {
    background-color: #1976d2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: none;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.service-btn img {
    width: 24px;
    height: 24px;
}

.nav-tabs .nav-link {
    color: #333;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    background-color: transparent;
}

.accordion .card {
    border: none;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion .card-header {
    background-color: #fff;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.accordion .btn-link {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: right;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion .btn-link:hover {
    color: #1976d2;
    text-decoration: none;
}

.accordion .btn-link[aria-expanded="true"] {
    color: #1976d2;
    background-color: #f1f5f9;
    border-radius: 8px;
}

.accordion .btn-link::after {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231976d2'%3e%3cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.accordion .btn-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.card-body {
    padding: 15px 20px;
}

.sub-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sub-service:last-child {
    border-bottom: none;
}

.sub-service .form-check {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
}

.title h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.notice {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.price {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Calendar Specific Styles */
.calendar-header {
    background-color: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.date-nav {
    display: flex;
    gap: 8px;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.date-nav .nav-item {
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-nav .nav-item.active {
    background-color: #17a2b8;
    color: #fff;
    transform: scale(1.05);
}

.date-nav .nav-item.friday {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.9;
}

.date-nav .nav-item:hover:not(.friday) {
    background-color: #e9ecef;
    transform: scale(1.02);
}

.timeline {
    height: 100%;
    overflow: scroll;
    margin-top: 25px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.timeline .time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.timeline .time-slot:hover {
    background-color: #f8f9fa;
}

.timeline .time-slot .time {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.timeline .event {
    background-color: #17a2b8;
    color: #fff;
    padding: 6px 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.timeline .event:hover {
    transform: scale(1.1);
}

.timeline .event-details {
    margin-right: 15px;
    color: #6c757d;
    font-weight: 500;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-bar:hover {
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.month-section h5 {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0;
}

.employee-section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employee-header {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.employee-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.employee-times {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.employee-time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.employee-time-slot:hover {
    background-color: #e9ecef;
    transform: scale(1.02);
}

.employee-time {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
}

.employee-event {
    background-color: #17a2b8;
    color: #fff;
    padding: 6px 12px;
    border-radius: 50%;
    width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.employee-event:hover {
    transform: scale(1.1);
}

.total-amount {
    margin-left: 15px;
    font-weight: 600;
    color: #28a745;
}

.invoice-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* --- Invoice Table Styles --- */
.invoice-table {
    width: 100%;
    border-collapse: collapse; /* Remove space between borders */
    margin-bottom: 1rem;
}

/* Table Header */
.invoice-table thead {
    background-color: #4a5568; /* Darker header */
    color: #ffffff;
}

.invoice-table th {
    font-weight: 700; /* Bold font for headers */
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

/* Table Body */
.invoice-table tbody tr {
    border-bottom: 1px solid #e2e8f0; /* Separator for rows */
    transition: background-color 0.2s ease-in-out;
}

.invoice-table tbody tr:last-of-type {
    border-bottom: 2px solid #4a5568; /* Stronger border for the last row */
}

.invoice-table tbody tr:hover {
    background-color: #f7fafc; /* Hover effect */
}

.invoice-table td {
    padding: 12px 15px;
    vertical-align: middle;
    text-align: center;
    font-size: 0.95rem;
    color: #2d3748;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.status-paid {
    background-color: #38a169; /* Green */
}

.status-pending {
    background-color: #dd6b20; /* Orange */
}

/* --- Responsive Styles for Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hide the original table header */
    .invoice-table thead {
        display: none;
    }

    .invoice-table,
    .invoice-table tbody,
    .invoice-table tr,
    .invoice-table td {
        display: block; /* Make table elements stack vertically */
        width: 100%;
    }

    .invoice-table tr {
        margin-bottom: 20px; /* Space between each "card" */
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden; /* Ensures the border-radius is respected */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .invoice-table td {
        display: flex; /* Use flexbox for better alignment */
        justify-content: space-between; /* Pushes label and content apart */
        align-items: center;
        text-align: right; /* Align content to the right */
        padding: 12px 15px;
        position: relative;
        border-bottom: 1px solid #f1f1f1; /* Separator line inside the card */
    }

    .invoice-table tr td:last-child {
        border-bottom: none; /* Remove border from the last cell in a card */
    }

    /* This is the magic part: Create the label using the 'data-label' attribute */
    .invoice-table td::before {
        content: attr(data-label); /* The text comes from the HTML attribute */
        font-weight: bold;
        color: #4a5568;
        text-align: left;
        padding-left: 10px; /* Add some space on the left of the label */
    }
}

.total-row {
    font-weight: bold;
    background-color: #f8f9fa;
}

.employee-event.selected {
    background-color: #28a745; /* لون أخضر للمواعيد المختارة */
    color: #fff;
}
/* ---------------------------------------------------------------------------------- */
/* Invoice Modal Styling */
/* Invoice Modal Styling */
