/* Reset some default styles */
body, h1, p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* Main content area */
main {
    padding: 5px;
}

/* Header Styles */
header {
    background-color: #e84889;
    color: white;
    padding: 5px;
}

/* Container for the entire header content */
.nav-container {
    display: flex;
    align-items: center;
}

/* Logo Styling */
.logo img {
    height: 50px;
    vertical-align: middle;
}

/* Placeholder Section Styling */
header p {
    margin: 0;
    font-size: 14px;
    color: white;
    text-align: center;
}

/* Title and Icon Styling */
header h2 {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
}

header img[alt="Icon"] {
    height: 50px;
    vertical-align: middle;
}

/* Footer Styles */
footer {
    background-color: grey;
    color: black;
    padding: 10px;
    text-align: center;
}

/* Navigation Styles */
nav {
    font-family: Arial, sans-serif;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav ul li {
    margin-right: 6px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* Active navigation link with thick underline */
.active a {
    color: white;
    font-weight: bold;
    border-bottom: 2px solid white; /* Thick underline */
    padding-bottom: 2px; /* Adjust padding to keep underline in place */
}

/* Dashboard Box Styles */
.dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

.dashboard-box {
    background-color: #e84889;
    color: white;
    flex-basis: 22%;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10px;
    border-radius: 10px;
}

/* Count Container in Dashboard Boxes */
.count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Count Number Styling */
.count {
    font-size: 36px;
}

/* Error Message Styling in Count Container */
.count-error {
    font-size: 18px;
    color: red;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
}

th, td {
    text-align: left;
    padding: 5px;
    border: 1px solid #ddd;
}

th {
    background-color: #383838;
    color: #ffffff;
}

/* Certificates Sent Styles */
.certificates-sent-yes {
    background-color: green;
}

.certificates-sent-no {
    background-color: red;
}

.certificates-sent-none {
    background-color: white;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    background: #fff;
    padding: 20px;
    z-index: 1000;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.popup img {
    max-width: 100%;
    max-height: 100%;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999;
}

.popup-controls {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Button Styling */
.btn {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    font-size: 14px;
}

.close-popup {
    background-color: red;
}

/* Error Message Styling */
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Table Styles */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th, .calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.calendar-table th {
    text-align: left;
    color: white;
}

.weekday {
    background-color: #333;
}

.weekend {
    background-color: #707070;
}

.calendar-table td {
    text-align: left;
}

.green-cell {
    background-color: green;
    color: white;
}

.red-cell {
    background-color: red;
    color: white;
}

.purple-cell {
    background-color: purple;
    color: white;
}

.calendar-cell {
        position: relative;
        padding: 0px;
        text-align: center;
        vertical-align: top;
        color: black; /* Ensure text is visible */
    }

    .calendar-cell img {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0px;
        left: 0px;
        object-fit: cover;
        z-index: 0; /* Place the image behind the text */
    }

    .calendar-cell .content {
        position: absolute;
        bottom: 0px;
        right: 0px;
        background-color: inherit; /* Match the cell's background color */
        padding: 1px 3px;
        z-index: 1; /* Ensure text is above the image */
        color: white; /* Ensure the text is readable */
        font-size: 10px; /* Make the initials smaller */
        font-weight: normal; /* Remove bold styling */
    }

    .green-cell .content {
        background-color: green; /* Make sure the background is green */
    }

    .purple-cell .content {
        background-color: magenta; /* Make sure the background is magenta */
    }

/* Course Name and Details */
.course-name {
    background-color: #f9f9f9;
    text-align: left;
    white-space: nowrap;
}

.course-title {
    font-weight: bold;
    color: black; /* Always black */
    text-decoration: none; /* No underline */
}

.course-title:hover {
    text-decoration: none; /* No underline on hover */
    color: black; /* Always black */
}

.course-details {
    font-size: smaller;
    color: #000; /* Venue name in black */
}

.course-customer {
    font-weight: bold;
    color: red; /* Customer name in red */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: auto;
   
}

.modal-content {
    background-color: lightgrey;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


