:root {
    --accent-color: #492062;
}

.fc-col-header-cell-cushion {
    color:white !important;

}
.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff; /* White text for contrast */
}

/* Optionally, add hover and focus effects to improve user experience */
.pagination .page-link {
    color: var(--accent-color); /* Default link color */
}

.pagination .page-link:hover, .pagination .page-link:focus {
    background-color: rgba(0, 123, 255, 0.1); /* Light blue background on hover */
}

.bg-login {
        background-color: var(--accent-color) !important;
}

.card-header {
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.nav-button {
    margin-top: 10px; /* Adds spacing between buttons in mobile view */
}

/* General button styles */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #3e1b54;
    border-color: #3e1b54;
}

.mobile-appointment-card .customer-header {
    background-color: var(--accent-color); /* Light blue background for visibility */
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

/*.mobile-appointment-card a {*/
/*    color: #ffffff;*/
/*}*/



/* Navbar styles */
.navbar {
    background-color: var(--accent-color);
}

.navbar-brand, .navbar-text, .nav-link {
    color: #ffffff !important;
}

.nav-item {
    margin-right: 5px;
    background-color: var(--accent-color);
}

.scrollable-chart-container {
    overflow-x: auto; /* Allow horizontal scrolling */
    overflow-y: hidden;
    white-space: nowrap; /* Prevent line breaks */
}

.nav-link.active {
    background-color: var(--accent-color) !important;
}
/* Card styles */
.card h3 {
    color: white;
}

body {
	padding-bottom: calc(60px + 80px) !important;
	/*margin-bottom: 80px !important;*/
}

body a {
	color: #492062;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

@media (max-width: 576px) {
    #cancelModalMobile .modal-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 90%; /* Adjust width as needed */
        max-width: 100%; /* Ensure it doesn't exceed screen width */
    }

    #cancelModalMobile .modal-content {
        border-radius: 10px; /* Optional: For rounded corners */
    }

    [id^="customerModal"] .modal-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0;
        width: 90%; /* Adjust width as needed */
        max-width: 100%;
    }

    [id^="customerModal"] .modal-content {
        border-radius: 10px; /* Optional: For rounded corners */
    }
}



body.modal-open {
    overflow: visible !important;
}

.modal-content {
    margin: 0 auto;
    position: relative;
}


.footer {
    height: auto; /* Allow footer height to adjust based on content */
    padding: 15px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-align: center;
    line-height: 1.5;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Dashboard tiles styles */
.dashboard-tile {
    text-decoration: none;
    color: inherit;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: 150px;
    border: 2px solid #492062;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 auto;
}

.tile i {
    margin-bottom: 10px;
    color: #492062;
}

.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tile h4 {
    margin: 0;
    font-size: 1.2rem;
}

/* Custom styling for reducing spacing between tiles */
.custom-tiles-row {
    row-gap: 20px;
    column-gap: 15px;
}

.btn-primary:active, .btn-primary:focus {
    background-color: #a64ca6 !important; /* Lighter purple */
    border-color: #a64ca6 !important;
}

table thead th {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

table tbody tr:nth-child(odd) {
    background-color: #f3e5f5 !important;
}

table tbody tr:nth-child(even) {
    background-color: #ffffff !important;
}

@media (min-width: 992px) {
    .nav-button {
        margin-top: 0;
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 90%;
        margin: 0 auto;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .modal-dialog.modal-sm {
        max-width: 80%; /* Adjust as needed */
        margin: 0 auto;
    }

    .table-responsive-appointments {
        display: none;
    }

    .appointment-card-custom {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 1rem;
        background-color: #f9f9f9;
        padding: 1rem;
    }

    .appointment-header-custom {
        background-color: var(--accent-color);
        color: #ffffff;
        font-weight: bold;
        font-size: 1.1rem;
        padding: 0.5rem;
        text-align: center;
        border-radius: 8px 8px 0 0;
    }

    .appointment-header-custom a {
        color: #ffffff;
    }

    .appointment-details-custom, .appointment-actions-custom {
        padding: 0.5rem;
    }

    .appointment-actions-custom a, .appointment-actions-custom button {
        margin-right: 0.5rem;
    }

    .table-responsive-customers {
        display: none;
        overflow: visible !important;
    }

    .customer-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 1rem;
        background-color: #f9f9f9;
        padding: 1rem;
    }

    .customer-header {
        background-color: var(--accent-color);
        color: #ffffff;
        font-weight: bold;
        font-size: 1.1rem;
        padding: 0.5rem;
        text-align: center;
        border-radius: 8px 8px 0 0;
    }

    .customer-header a {
        color: #ffffff;
    }

    .customer-details, .customer-actions {
        padding: 0.5rem;
    }

    .customer-actions a, .customer-actions button {
        margin-right: 0.5rem;
    }

    .custom-tiles-row {
        justify-content: center;
    }

    .desktop-appointment-card {
        display: none;
    }

    .mobile-appointment-card {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
        background-color: #f9f9f9;
    }
    .appointment-header, .appointment-details {
        display: flex;
        justify-content: space-between;
    }
    .appointment-actions {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        border-bottom: 5px solid var(--accent-color);
    }
    .appointment-actions a {
        margin-right: 5px;
    }


    .table-responsive {
        overflow-x: auto;
    }

    .table-responsive td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
        text-align: left;
    }

    .table-responsive .btn {
        width: 100%;
        margin: 5px 0;
    }

    .btn-sm {
        margin-bottom: 10px;
    }

    /* Additional styling for better button separation */
    .table-responsive td .btn {
        margin-bottom: 10px;
    }

    .table-responsive td .btn {
        width: 100%;
        margin: 10px 0; /* Add margin between buttons */
    }

    .action-buttons .btn {
        margin: 10px 0; /* Spacing between buttons */
    }

    .footer {
        padding: 20px; /* More padding for better spacing */
        font-size: 0.9rem; /* Adjust font size for better fit */
    }

    .search-container input {
        max-width: 300px;
        margin-left: auto;
    }

}

@media (min-width: 768px) {
    .customer-card {
        display: none;
    }

    .appointment-card-custom {
        display: none;
    }

    .action-buttons .btn {
        margin: 0 5px; /* Add spacing between inline buttons */
    }
    .mobile-appointment-card {
        display: none;
    }

}