/* --- General Styles --- */

body {
    background-color: #f8f9fa; /* Light gray background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* More modern font */
    color: #343a40; /* Dark gray text */
}

/* --- Custom Card Styles --- */

.customCard {
    background: rgba(255, 255, 255, 0.9); /* White background */
    color: #343a40;
    padding: 1.5rem; /* More consistent padding */
    margin-bottom: 1.5rem; /* Consistent spacing */
    border-radius: 0.5rem; /* Slightly rounded corners */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Subtle shadow */
    border: 1px solid rgba(0,0,0,.125);
}

/* --- Navbar Styles --- */

.navbar {
    background: rgba(52, 58, 64, 0.9); /* Dark gray navbar */
    color: #fff;
    margin-bottom: 1rem;
}

.navbar-brand, .nav-link {
    color: #fff !important; /* Ensure text is white */
}

/* --- Headings --- */

.heading {
    color: #495057; /* Slightly lighter dark gray */
    margin-bottom: 0.5rem;
}

.subheading {
    color: #6c757d; /* Gray subheading */
    margin-bottom: 1rem;
}

/* --- Form Styles --- */

.formTable {
    width: 100%;
    border-collapse: collapse; /* Important for consistent spacing */
}

.formTable td {
    padding: 0.75rem 0; /* Vertical padding */
    border-top: 1px solid #dee2e6; /* Light gray border */
}
.formTable td:first-child{
    border-top: none;
}

form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold; /* Make labels bold */
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 0.5rem 0.75rem; /* Adjusted padding */
    min-height: calc(1.5em + 1rem + 2px); /* Bootstrap input height alignment */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


form .helptext {
    font-size: 0.875rem; /* Smaller help text */
    color: #6c757d;
    margin-top: 0.25rem;
}

/* --- Button Styles --- */

/* Using Bootstrap button classes */
.btn {
    margin: auto;
    width: fit-content;
    display: inline-block; /* Needed for width: fit-content to work */
}

/* --- Technique List Styles --- */

.technique-list {
    font-family: inherit; /* Inherit from body */
}

.technique-list h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: #495057;
}

.technique-list p {
    margin: 0.25rem 0; /* Reduced margin */
    color: #495057;
}

.technique-list hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 1.5rem 0; /* Increased margin */
}

.technique-list a {
    color: #007bff; /* Bootstrap primary color */
    text-decoration: none;
}

.technique-list a:hover {
    text-decoration: underline;
}

/* --- Dashboard Specific Styles --- */

.chart-container {
    margin-bottom: 1.5rem;
    min-height: 300px; /* Default for mobile */
}

@media (min-width: 768px) { /* md breakpoint */
    .chart-container {
        min-height: 400px; /* Restore for larger screens */
    }
}

.dashboard-heading {
    margin-top: 1.5rem; /* Increased top margin for better section separation */
    margin-bottom: 1rem;
    color: #495057;
}

h2.dashboard-heading:first-of-type {
    margin-top: 1rem; /* Keep less margin for the very first h2 if needed */
}


.my-4 { /* Bootstrap utility class */
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* --- Session Detail Page Styles --- */

.session-detail-heading {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.session-detail-list {
    list-style: none;
    padding-left: 0;
}

.session-detail-list li {
    margin-bottom: 0.5rem;
}

.session-detail-list strong {
    margin-right: 0.5rem;
}

.copy-btn {
    margin-left: 0.5rem; /* Consistent spacing */
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    background-color: #f8f9fa; /* Light gray */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.copy-btn:hover {
    background-color: #e9ecef; /* Slightly darker gray on hover */
}

.session-detail-link {
    color: #007bff; /* Bootstrap primary color */
    text-decoration: none;
}

.session-detail-link:hover {
    text-decoration: underline;
}

.sparring-list {
    list-style: disc;
    padding-left: 1.5rem; /* Indent */
}

.sparring-list p {
    margin: 0;
}

.other-list {
    list-style: none;
}

/* --- Responsive Adjustments --- */

@media (min-width: 768px) { /* Medium screens and up */
    form {
        grid-template-columns: repeat(2, 1fr); /* Two-column layout */
    }
    /* Adjust grid for specific form sections if needed */
    .formTable td:first-child {
    white-space: nowrap;
    }
    .formTable input{
    max-width: fit-content;
    }
}

/* --- Add Another Button --- */
#addanother {
    margin-right: 1em;
}

.hidden_form{
    display: none;
}

/* --- Style to align submit buttons and text --- */

.button-container {
    display: flex;
    align-items: center;  /* Vertically align items */
    gap: 10px;          /* Space between buttons/text */
}


/* --- SessionEvaluation Fields - Initially Visible --- */


/* --- Mobile Responsiveness for Forms (stacked layout) --- */
@media (max-width: 767.98px) { /* xs, sm breakpoints (Bootstrap 5) */
    form table,
    form tbody,
    form tr,
    form th,
    form td {
        display: block;
        width: 100% !important; /* Force full width */
        box-sizing: border-box;
    }

    form th,
    form td {
        text-align: left; /* Align text to the left */
        padding-left: 0;
        padding-right: 0;
    }

    form th { /* Typically labels */
        border-top: none;
        padding-bottom: 0.25rem;
    }

    form td { /* Typically inputs */
        border-top: none;
        padding-top: 0;
        margin-bottom: 0.75rem;
    }

    form thead {
        display: none;
    }
}

/* --- Mobile Responsiveness for Dashboard Headings --- */
@media (max-width: 767.98px) {
    h1.dashboard-heading {
        font-size: 1.75rem;
    }
    h2.dashboard-heading {
        font-size: 1.5rem;
    }
    h3.dashboard-heading {
        font-size: 1.25rem;
    }
}

/* --- Mobile Navigation Tiles --- */
.mobile-tile {
    display: block;
    padding: 1.5rem 0.5rem; /* Generous padding for tapability */
    background-color: #e9ecef; /* Light background */
    border: 1px solid #dee2e6;
    border-radius: 0.35rem; /* Slightly more rounded than default cards */
    text-decoration: none;
    color: #343a40;
    transition: background-color 0.15s ease-in-out;
    height: 100%; /* Make tile fill column height for alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-tile:hover {
    background-color: #ced4da;
    color: #343a40;
}

.mobile-tile-icon {
    font-size: 1.5rem; /* Placeholder for icon size */
    margin-bottom: 0.5rem;
}