/* static/css/custom.css */

/* Import Lato font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

/* Define CSS variables for your theme colors */
:root {
    --color-indigo: #0d1a75;
    --color-indigo-light: #d5dafa; /* lighter shade */
    --color-fuchsia: #bd2af6;
    --color-fuchsia-light: #f1d3fd;
    --color-text: #333333;
    --color-background: #f9f9f9;
    --color-white: #ffffff;
}
body {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    /* margin: 2rem; */
    background-color: var(--color-background);
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--color-indigo);
    color: #fff;
    padding: 0.5rem;
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

a {
    color: var(--color-indigo);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Styles specifically for the course details metadata table */
#course-details {
    margin-bottom: 1rem; /* Add some space below this section */
    font-size: 80%;
}

#course-details table {
    width: auto; /* Override the global table width: 100%; to let it shrink to content */
    max-width: 450px; /* Set a max-width to control its size and keep it on the left. Adjust as needed. */
                     /* Alternatively, you could use a percentage: width: 40%; */
    /* border: 1px solid #e0e0e0; /* Optional: a light border around the whole table */
    /* border-radius: 5px; /* Optional: rounded corners for the table */
    /* float: left; /1* Simple way to push to left if content follows. Clear floats after if needed. *1/ */
    /* Or, better for layout, wrap #course-details in a Bootstrap column: <div class="col-md-5">...</div> */
    margin-right: 2rem; /* Add some space to its right if other content might be there */
}

/* Restyle TH elements only within the #course-details table */
#course-details th {
    background-color: var(--color-indigo-light);    /* Remove the indigo background */
    color: var(--color-text);         /* Use your default text color */
    font-weight: bold;                /* Keep/make labels bold */
    text-align: left;                 /* Align label text to the left (browsers often center <th>) */
    padding: 0.4rem 0.8rem;           /* Adjust padding to make it more compact if desired */
    border-bottom: 1px solid #eeeeee; /* Lighter border for rows */
    /* width: 120px; */               /* Optional: fixed width for label column */
}

/* Style TD elements only within the #course-details table */
#course-details td {
    padding: 0.4rem 0.8rem;           /* Adjust padding, keep consistent with <th> */
    border-bottom: 1px solid #eeeeee; /* Lighter border for rows */
}

/* Remove bottom border from the last row for a cleaner look */
#course-details tr:last-child th,
#course-details tr:last-child td {
    border-bottom: none;
}

/* styling for back button and trainstation button */
#back-link.btn, /* Targeting by ID and .btn class */
#trainstation-link.btn {
    padding: 0.2rem 0.4rem; /* Even smaller padding */
    font-size: 0.8rem;     /* Smaller font */
    /* Adjust line-height if necessary */
}

/* Basic Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
}

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

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

/* Custom Background Colors */
.bg-indigo {
    background-color: var(--color-indigo) !important;
}

.bg-fuchsia {
    background-color: var(--color-fuchsia) !important;
}

/* Custom Text (Foreground) Colors */
.fg-indigo { /* Using 'fg-' prefix as you suggested for foreground/text */
    color: var(--color-indigo) !important;
}

.fg-fuchsia {
    color: var(--color-fuchsia) !important;
}

.ecaps-logo a img {
    max-height: 40px;
    width: auto;
    margin: auto;
}


.enrollment-inactive {
        color: #6c757d; /* Bootstrap's text-muted color
        /* You could also reduce opacity or change background slightly */
        opacity: 0.7;
}
.enrollment-inactive td {
        background-color: #f8f9fa; /* Very light grey background for inactive rows
}
