/* ================================
   STRKR Global Styles
   ================================ */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* ================================
   Header & Navigation
   ================================ */
header {
    background-color: #0055b8;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    margin-top: 0.5rem;
}

/* Links */
nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Divider */
nav .divider {
    color: #ffffff;
    margin: 0 0.5rem;
}

/* Login info */
nav .login-info {
    font-weight: normal;
}

/* Footer styles */
.site-footer {
    background-color: #f8f9fa;
    padding: 1em;
    margin-top: 2em;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #ddd;
  	background-image: linear-gradient(to bottom,#f8f9fa,#fff);
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    color: #0055b8;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ================================
   Page Layout
   ================================ */
main {
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
}

/* ================================
   Calendar & Tables
   ================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: center;
}

th {
    background-color: #0055b8;
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ================================
   Forms & Buttons
   ================================ */
select, input[type="text"], input[type="email"], input[type="password"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

button, input[type="submit"] {
    background-color: #0055b8;
    color: #ffffff;
    border: none;
    padding: 0.25rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover, input[type="submit"]:hover {
    background-color: #004494;
}

select.time {
    width: 5rem;
}

/* Small buttons (like delete links) */
button.delete {
    background-color: #dc3545;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

button.delete:hover {
    background-color: #a71d2a;
}

/* ================================
   Weekly Calendar Grid
   ================================ */
.calendar-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.calendar th, 
.calendar td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: center;
    min-width: 120px;
}

.calendar th {
    background-color: #0055b8;
    color: #ffffff;
    font-weight: bold;
}

.calendar td {
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

/* Filled slots */
.calendar td.filled {
    background-color: #0055b8;
    color: #ffffff;
    font-weight: bold;
}

/* Partially filled (if you later add capacity tracking) */
.calendar td.partial {
    background-color: #cce0f5;
    color: #000000;
}

/* Screen view */
.print-button {
    margin: 10px 0;
    padding: 6px 12px;
    background: #0073e6;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}
.print-button:hover {
    background: #005bb5;
}
.timeslot {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}
.timeslot strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

/* Print view */
@media print {
    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        color: #000;
    }
    header, footer, form, .print-button {
        display: none !important;
    }
    .timeslot {
        border: none;
        background: none;
        margin: 0 0 12px 0;
        page-break-inside: avoid;
    }
    .timeslot strong {
        font-size: 14pt;
        border-bottom: 1px solid #000;
        margin-bottom: 6px;
        display: block;
    }
    ul {
        margin: 0;
        padding-left: 20px;
    }
}

/* Hover effect */
.calendar td:hover {
    background-color: #f0f8ff;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    /* Header nav stacked */
    nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    nav a, nav .login-info {
        margin: 0;
        padding: 0.5rem 1rem;
        background-color: #004494;
        border-radius: 4px;
        text-align: center;
        display: block;
        width: 100%;
        max-width: 300px;
    }

    nav .divider {
        display: none;
    }

    header h1 {
        font-size: 1.2rem;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0.5rem;
    }

    td {
        text-align: left;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    td:last-child {
        border-bottom: none;
    }

    /* Responsive calendar cards */
    .calendar, .calendar thead, .calendar tbody, .calendar th, .calendar td, .calendar tr {
        display: block;
    }

    .calendar thead {
        display: none;
    }

    .calendar tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 0.5rem;
        background: #ffffff;
    }

    .calendar td {
        border: none;
        text-align: left;
        padding: 0.5rem 0.75rem;
        position: relative;
    }

    .calendar td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 0.25rem;
        color: #0055b8;
    }
}
