/* General body styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Adjust this to match the height of the navbar */
}

.header-spacer {
    height: 70px; /* Same as the header height */
}

/* Customize the offcanvas */
.offcanvas {
    background-color: #343a40;
    color: white;
}

.offcanvas-header h5 {
    color: #ffffff;
}

/* Customize the links inside the sidebar */
.offcanvas-body .nav-link {
    color: #f8f9fa; /* lighter than white */
    font-weight: 500;
    margin: 5px 0;
    padding: 10px 15px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.offcanvas-body .nav-link i {
    margin-right: 8px;
}

.offcanvas-body .nav-link:hover {
    background-color: #495057;
    color: #ffffff;
    border-radius: 5px;
}

.offcanvas-body .nav-link.active {
    background-color: #007bff;
}

/* Table Header Styling */
.table th {
    background-color: #5693a5 !important; /* Dark header */
    color: #ffffff !important; /* White text for better contrast */
    font-weight: bold;
    text-align: left;
    padding: 12px;
    white-space: nowrap;
}

/* Mobile-Friendly Table */
@media (max-width: 768px) {
    .table thead {
        display: block; /* Ensure headers remain visible */
        width: 100%;
    }

    .table tbody td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }

    .table tbody td:before {
        content: attr(data-label); /* Use data-label for mobile-friendly headers */
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
}

/* Read-Only Fields */
.form-control-plaintext {
    color: #6c757d !important; /* Muted text color */
    background-color: transparent;
    border: none;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}

.meeting-card .card-body {
    display: flex;
    flex-direction: column;
}

.meeting-card .card-body .btn {
    margin-top: 8px;
}

/* Hover effects for cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal,
.modal-dialog {
    animation: none !important; /* Disable any animations */
    transition: none !important; /* Disable transitions */
}

body.modal-open {
    overflow-y: hidden; /* Prevent background scrolling */
}

.highlight-error {
    border: 2px solid red !important;
    box-shadow: 0 0 3px red;
}

/* Fix .dropdown-item contrast */
.dropdown-menu .dropdown-item {
    color: #212529;
    font-size: 14px;
    white-space: normal;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}