/* start/static/start/css/custom.css */
/* VERSION 1.0 - OCT 5 - 21:48 */



.video-js {
    background-color: transparent !important;
}
#my-video.video-js:focus {
    outline: none !important;
    box-shadow: none !important;
}

.vjs-frame-back-button .vjs-icon-placeholder::before {
  content: '«'; /* Double left arrow */
  font-size: 1.8em;
  line-height: 1.67;
}

.vjs-frame-forward-button .vjs-icon-placeholder::before {
  content: '»'; /* Double right arrow */
  font-size: 1.8em;
  line-height: 1.67;
}

/* Updated .logo styling for responsiveness */
.logo {
    /* Remove fixed width */
    /* width: 425px; */
    height: auto;
    margin: 0 0 0 10px;
    max-width: 180px; /* Set a max-width for the logo on larger screens */
}

/* Responsive adjustments for the logo */
@media (max-width: 768px) {
    .logo {
        max-width: 120px; /* Smaller max-width for tablets and smaller desktops */
        margin: 0 0 0 5px; /* Adjust margin for smaller screens */
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 100px; /* Even smaller max-width for mobile phones */
        margin: 0; /* Remove margin on very small screens if desired */
    }
}


/* Adjust navbar-light specific styles for navbar-dark */
.navbar-dark .navbar-nav .nav-link { /* Changed from .navbar-light */
    color: rgba(255, 255, 255, 1);
    font-weight: normal;
    margin-left: 10px;
}

.navbar-dark .navbar-nav .nav-link:hover { /* Changed from .navbar-light */
    color: rgb(175, 175, 175);
    font-weight: normal;
}

.custom-navbar {
    position: relative; /* Ensure z-index works */
    z-index: 1050; /* Higher than Bootstrap's default modal z-index (1050) and video (1) */
}

.table_header {
    background-color: rgba(255, 255, 255, 0);
    padding: 30px 20px 20px 20px;
}

.button-icon {
    top: 2px;
    position: relative;
}

.material-icon {
    top: 6px;
    position: relative;
}

.material-icon-headers {
    vertical-align: middle; 
    margin-right: 8px;
}

.material-icon-button {
    font-size: 21px;
    display: block;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga'; /* Standard property */
    -webkit-font-feature-settings: 'liga'; /* Webkit prefix for older browsers */
    -webkit-font-smoothing: antialiased;
}

/*
 * CSS for the fullscreen video start page
 */

/*
 * Note: These styles are specific to the start page.
 * They target the body and the .container class globally when the body has the 'start-page' class.
 */

/* Adjust body to allow for navigation bar */
body.start-page {
    margin: 0;
    padding: 0;
    /* Removed: height: 100%; and overflow: hidden; */
}

/*
 * The .container from Bootstrap adds padding and max-width which we need to override on the start page.
 * The !important flag is used here to ensure these styles take precedence over Bootstrap's.
 */
body.start-page .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    /* Height will be handled by the video container, not the overall container */
    /* Removed: height: 100% !important; */
}

/* Container for the video element, positioned absolutely below the navbar */
.fullscreen-video-container {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: calc(100% - 55px);
    overflow: hidden;
    z-index: 1;
}

/* The video element itself, centered and scaled to cover the container */
#background-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7; /* Adjust for desired video darkness */
    background-size: cover;
}

/* Container for the overlay text, ensuring it's centered */
.overlay-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height should be relative to the available space below the navbar */
    height: calc(100vh - 52px); /* Full viewport height minus navbar height */
    text-align: center;
    color: white;
    position: relative; /* Ensure it's on top of the video */
    z-index: 2;
    top: 52px; /* Offset the overlay text by the navbar height */
}

/* Styling for the main headline */
.overlay-text-container h1 {
    font-size: 5.5rem;
    font-weight: 900; /* Extra bold for impact */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.75); /* Dark shadow for readability */
    text-align: center; /* Center the headline as well */
    width: 100%;
}
/* Make font size responsive for smaller screens */
@media (max-width: 768px) {
    .overlay-text-container h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .overlay-text-container h1 {
        font-size: 2.5rem;
    }
}

.dropdown-toggle::after {
    
    vertical-align: 5px;
}

.start-button {
    display: block;   /* Make the anchor tag behave like a block-level element */
    width: fit-content; /* Make the block only as wide as its content */
    margin: 20px auto 0 auto; /* Center horizontally with auto margins, add top margin */
}

/*.card-img, .card-img-bottom, .card-img-top {
/* aspect-ratio: 2.148;
/*}

/* NEW: Robust CLS fix for video thumbnails */
.video-thumbnail {
    display: block;
    position: relative;
    aspect-ratio: 2.148; /* Reserves the space based on the ratio */
    overflow: hidden;
}

/* Ensure the image inside fills the reserved space */
.video-thumbnail img {
    /* We assume this image will be a direct child of the wrapper */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom styles for the navbar toggler icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure the toggler button itself has a light border on dark background */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.add-to-skapp-btn {
    /*width: 95px;*/
    width: unset;
}

.am-appointment-time {
    line-height: 1.6;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}
.am-appointment-time.approved {
    background-color: rgba(95, 206, 25, .1);
    color: #5fce19;
}

/* Ensure regular table rows have no background */
.table tbody tr {
    --bs-table-bg: transparent; /* Makes the background clear */
}

/* Make clickable table rows change cursor on hover */
.table-hover .clickable-row:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Ensure the bg-light class applies its background color with higher specificity */
.table tbody tr.bg-light {
    background-color: #e9ecef !important; /* Bootstrap's bg-light color, !important to override */
}

/* Style for the status bar (the small colored bar) */
/* Apply position relative to the first td to contain the ::before pseudo-element */
.table tbody tr.am-appointment-row td:first-child {
    position: relative; /* Make the first cell a positioning context for the ::before */
    padding-left: 20px; /* Adjust padding to make space for the bar */
}

/* The actual bar using ::before pseudo-element */
.table tbody tr.am-appointment-row td:first-child::before {
    content: "";
    display: block;
    width: 12px; /* Width of the bar */
    height: calc(100% - 8px); /* Height of the bar, leaving 4px top/bottom margin */
    position: absolute;
    top: 4px; /* Position from top of the cell */
    left: 4px; /* Position from left of the cell */
    border-radius: 4px;
    background: #cff5b7; /* Color of the bar, matching the example */
    z-index: 1; /* Ensure it's above the cell content if needed */
}

/* Yellow scheme for the bar when user.exists_in_skapp is false */
.table tbody tr.am-not-in-skapp td:first-child::before {
    background: #FFECB3; /* Light amber for the bar */
}

/* Yellow scheme for the time text when user.exists_in_skapp is false */
.am-appointment-row.am-not-in-skapp .am-appointment-time.approved {
    background-color: rgba(255, 193, 7, 0.1); /* Light transparent amber for time background */
    color: #FFC107; /* Amber for time text color */
}

.table>:not(caption)>*>* {
    padding: .8rem .5rem;
    vertical-align: middle;
}

.delete-icon {
    cursor: pointer;
}
/* New styles for the delete button */
.material-symbols-filled {
    font-variation-settings: 'FILL' 1;
}
.delete-icon-btn {
    color: #dc3545;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.delete-icon-btn:hover {
    background-color: #dc3545;
    color: #fff;
}
.fav-icon-btn {
    color: #0d6efd; /* Bootstrap's primary blue */
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, font-variation-settings 0.2s ease-in-out;
}
.fav-icon-btn:hover {
    background-color: #0d6efd;
    color: #fff;
}

.favorite-glow {
    box-shadow: inset 0 0 12px 0px rgba(13, 110, 253, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

/* Styles moved from athlete_detail.html and session_detail.html */
.editable-field-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem; /* Adjust spacing as needed */
}
.editable-field-view, .editable-field-edit {
    flex-grow: 1; /* Allow content to take available space */
    display: flex;
    align-items: center;
}
.editable-field-view {
    cursor: pointer;
}
.editable-field-view .material-symbols-outlined {
    margin-right: 0.5rem;
}
.editable-field-edit .input-group {
    width: 100%; /* Ensure input group takes full width */
}
.editable-field-edit .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.editable-field-edit .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* This rule was already present, but ensuring it's here for clarity */
.material-icon-headers {
    font-size: 1.2rem; /* Adjust icon size */
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* --- CONSOLIDATED AND FIXED: Session Action Icon Styles --- */
.session-action-icon {
    display: inline-flex;       /* Use flexbox for robust centering */
    align-items: center;        /* Vertically center the icon */
    justify-content: center;    /* Horizontally center the icon */
    width: 40px;                /* Fixed width */
    height: 40px;               /* Fixed height */
    border-radius: 50%;         /* Make it a circle */
    font-size: 1.5rem;          /* Icon size */
    color: #6c757d;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    margin-right: 8px;          /* Spacing */
}
.session-action-icon:hover {
    background-color: #007bff; /* Hover color for primary actions */
    color: #fff;
}
.session-action-icon.delete-icon:hover {
    background-color: #dc3545; /* Hover color for delete */
    color: #fff;
}
.session-action-icon.email-sent {
    color: #28a745; /* Color for sent email */
}
.session-action-icon.email-sent:hover {
    background-color: #218838; /* Darker green on hover */
    color: #fff;
}
/* --- END OF FIX --- */


/* Style for the container of session action icons to remove excess whitespace */
.session-actions-container {
    width: fit-content; /* Make the container only as wide as its content */
    white-space: nowrap; /* Prevent icons from wrapping to the next line */
}

/* New style to reduce padding on the 'Actions' column */
.actions-column {
    width: 1%; /* Try to make the column as small as possible */
    white-space: nowrap; /* Ensure content doesn't wrap */
}

/* Styles for the new dropdown menu items */
.more-vert-icon {
    cursor: pointer;
    padding: 0.3rem; /* For circular hover effect */
    border-radius: 50%; /* For circular hover effect */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.more-vert-icon:hover {
    background-color: #6c757d; /* Gray hover background */
    color: #fff; /* White icon on hover */
}

/* Remove default Bootstrap caret from more_vert icon */
.more-vert-icon.dropdown-toggle::after {
    display: none;
}

.dropdown-item .material-symbols-outlined {
    font-size: 1.25rem; /* Adjust icon size within dropdown */
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Hover effect for dropdown items with icons */
.dropdown-item:hover .material-symbols-outlined {
    color: inherit; /* Inherit color from the parent dropdown-item on hover */
}

/* Specific styling for the delete dropdown item icon on hover */
.delete-icon-btn-dropdown:hover .material-symbols-outlined {
    color: #212529; /* White icon on hover for delete */
}

/* Specific styling for the favorite dropdown item icon on hover */
.fav-icon-btn-dropdown:hover .material-symbols-outlined {
    color: #212529; /* White icon on hover for favorite */
}

/* Ensure the filled state is visible for favorite icon in dropdown */
.fav-icon-btn-dropdown.material-symbols-filled .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    color: #0d6efd; /* Blue color when filled */
}
/* Ensure the filled state is visible for favorite icon in dropdown on hover */
.fav-icon-btn-dropdown.material-symbols-filled:hover .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    color: #212529; /* White color when filled and hovered */
}

/* Styles moved from session_detail.html's inline style block */
.editable-field-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem; /* Adjust spacing as needed */
}
.editable-field-view, .editable-field-edit {
    flex-grow: 1; /* Allow content to take available space */
    display: flex;
    align-items: center;
}
.editable-field-view {
    cursor: pointer;
}
.editable-field-view .material-symbols-outlined {
    margin-right: 0.5rem;
}
.editable-field-edit .input-group {
    width: 100%; /* Ensure input group takes full width */
}
.editable-field-edit .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.editable-field-edit .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.material-icon-headers {
    font-size: 1.2rem; /* Adjust icon size */
    vertical-align: middle;
    margin-right: 0.5rem;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: #acabab;
}

/* --- ADDED: Styles for Voice Recorder --- */

:root {
    --recorder-button-size: 70px;
    --recorder-icon-size: 36px;
    --recorder-background-color: #f8f9fa;
    --recorder-text-color: #212529;
    --recorder-red-color: #dc3545;
    --recorder-green-color: #28a745;
    --recorder-grey-color: #6c757d;
}

.recorder-body {
    background-color: var(--recorder-background-color);
    color: var(--recorder-text-color);
}

.recorder-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 85vh; /* Use viewport height to fill screen */
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.recorder-header-text {
    font-size: 1.25rem;
    color: var(--recorder-text-color);
}

.waveform-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#waveform {
    width: 100%;
    height: 100%;
}

.timer-container {
    text-align: center;
}

.timer {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--recorder-text-color);
    letter-spacing: 2px;
}

.timer-status {
    font-size: 1rem;
    color: var(--recorder-grey-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.control-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--recorder-grey-color);
}

.record-button {
    width: var(--recorder-button-size);
    height: var(--recorder-button-size);
    border-radius: 50%;
    background-color: var(--recorder-red-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid transparent;
    transition: all 0.2s ease;
}

.record-button.recording {
    background-color: var(--recorder-red-color);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
}

.record-button .material-symbols-outlined,
.control-button .material-symbols-outlined {
    font-size: var(--recorder-icon-size);
    color: white;
    transition: transform 0.2s ease;
}

.control-button .material-symbols-outlined {
     font-size: 32px;
     color: var(--recorder-grey-color);
}

.hidden {
    display: block;
}

.controls-container {
        /* Allows items to wrap onto the next line if space is needed */
        flex-wrap: wrap;
    }
#save-btn-wrapper {
    /* Forces this element to take up the full width, pushing it to a new line */
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    /* Adds some space above the save button when it appears */
    margin-top: 1rem; 
}

/* --- Styles for Voiceover Icon --- */

/* Base style for the voiceover icon container */
.voiceover-icon-container {
    display: inline-flex; /* Use flex to easily center the icon */
    align-items: center;
    justify-content: center;
    width: 35px;  /* Set a fixed width */
    height: 35px; /* Set a fixed height */
    border-radius: 50%; /* Make it circular */
    background-color: rgba(13, 110, 253, 0.15); /* A faint blue, matching your 'fav-icon-btn' */
    margin-left: 0.5rem; /* Equivalent to ms-2 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* The icon itself within the container */
.voiceover-icon-container .material-symbols-outlined {
    font-size: 22px; /* Adjust icon size to fit the circle */
    color: #0d6efd; /* Bootstrap's primary blue, for consistency */
    animation: pulse-glow 2s infinite ease-in-out;
}

.video-card {
    font-size: 14px; /* Adjust icon size to fit the circle */
}

.video-card .material-symbols-outlined {
    /* Calculates the size by taking the parent's font size (1em) and subtracting 4px */
    font-size: 18px;

    /* Optional: Adjust vertical alignment for the smaller icons */
}

.tooltip-inner {
  font-size: 0.8rem; /* Or 12px, or any other value */
}

#seekIconContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* z-index must be higher than the video element and its controls. 
        Bootstrap modals are around 1055, so this is safe. */
    z-index: 1056; 
}

#seekIcon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.6s ease-out;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* --- Styles Migrated from athletes.html --- */
.sort-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
}
.sort-arrow.asc {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
}
.sort-arrow.desc {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
}
th[data-sort-by] {
    cursor: pointer;
}

/* --- Styles for Mobile Card View --- */
.session-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.session-card-link:hover .session-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.session-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
}
.session-date-box {
    text-align: center;
    padding-right: 1.25rem;
    border-right: 1px solid #e9ecef;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.session-date-day {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0d6efd;
    line-height: 1.1;
}
.session-date-month-year {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.session-content {
    flex-grow: 1;
    min-width: 0;
}
.session-summary {
    font-weight: 500;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.session-meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.session-meta .material-symbols-outlined {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.session-meta-amelia{
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    align-items: center;
}

.session-meta-amelia .material-symbols-outlined {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.session-chevron {
    color: #adb5bd;
    font-size: 2rem;
    margin-left: 1rem;
}

/* --- Styles from athlete_detail.html --- */
.table-hover .clickable-row:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* --- Styles for Session Cards/Boxes --- */
.session-card-link {
    text-decoration: none;
    color: inherit;
}

.session-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: background-color 0.15s ease-in-out;
}

.session-card:hover {
    background-color: #f8f9fa;
}

.session-date-box {
    text-align: center;
    margin-right: 1rem;
    padding: 0.5rem;
    background-color: #cecece;
    border-radius: 0.25rem;
}

.session-date-day {
    font-size: 2.5rem;
    font-weight: bold;
}

.session-date-month-year {
    font-size: 0.8rem;
}

.session-content {
    flex-grow: 1;
}

.session-summary {
    font-weight: 500;
}



.session-actions-mobile {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* --- Styles from session_detail.html --- */
.session-actions {
    width: 100%;
}

.session-action-icon {
    color: #6c757d; /* A neutral gray color */
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.session-action-icon:hover {
    background-color: #e9ecef;
    color: #212529; /* Darker color on hover */
}

.session-action-icon.delete-icon:hover {
    background-color: #f8d7da; /* Light red for delete hover */
    color: #842029;
}

.session-action-icon.email-sent {
    color: #198754; /* Green for sent emails */
}

/* --- Styles for Athlete Cards (Mobile View) --- */
.athlete-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 1rem;
    cursor: pointer;
}

.athlete-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.athlete-content {
    display: flex;
    align-items: center;
}

.athlete-info {
    flex-grow: 1;
}

.athlete-name {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.athlete-meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.athlete-meta .material-symbols-outlined {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.athlete-actions-mobile {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.user-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.user-card.not-in-skapp {
    /* Adds a prominent visual indicator for users that need to be added */
    border-left: 4px solid #FFC107; /* Amber color from Bootstrap's warning */
}

/* Style for the clickable card link wrapper */
.user-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the link takes up the full block space */
}
.user-card-link:hover .user-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* --- FIX: Prevent Navbar Shift & Right-Align All Mobile Menu Items (v5) --- */
@media (max-width: 991.98px) {
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #212529; 
    padding: 0.5rem 1rem; 
  }

  /* * 1. Aligns all main nav item *containers* to the right edge.
   */
  .navbar-collapse .navbar-nav {
    align-items: flex-end;
  }

  /* * 2. Forces all sub-menu *containers* to align to the right edge.
   */
  .navbar-collapse .dropdown-menu {
    right: 0;
    left: auto;
  }

  /* * 3. Aligns the *text* inside the sub-menu items to the right.
   */
  .navbar-collapse .dropdown-item {
    text-align: right;
  }

  /* * 4. (THE NEW FIX)
   * Aligns the *text* inside the main top-level links
   * ("Athletes", "Media", "Adrian", etc.) to the right.
   */
  .navbar-collapse .navbar-nav .nav-link {
    text-align: right;
  }
}