/* Minification failed. Returning unminified contents.
(7,5): run-time error CSS1035: Expected colon, found 'margin'
(1291,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1292,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1293,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1294,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1295,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1296,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1297,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1298,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1303,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1304,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1305,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1317,46): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(1317,60): run-time error CSS1039: Token not allowed after unary operator: '-rc-primary'
(1317,79): run-time error CSS1039: Token not allowed after unary operator: '-rc-secondary'
(1333,25): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(1338,32): run-time error CSS1039: Token not allowed after unary operator: '-rc-border'
(1339,26): run-time error CSS1039: Token not allowed after unary operator: '-rc-shadow'
(1356,28): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(1357,24): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(1358,17): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(1365,21): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(1378,24): run-time error CSS1039: Token not allowed after unary operator: '-rc-border'
(1383,22): run-time error CSS1039: Token not allowed after unary operator: '-rc-surface'
(1390,39): run-time error CSS1039: Token not allowed after unary operator: '-rc-border'
 */

#clipstable {
    table-layout: fixed;
    width: 100%;
    font-size: 12px;
    padding: 0px;f
    margin: 0px;
}

#clipstable .minutecol {
    width: 10%;
}
#clipstable .iconcol{
    width:70px;
}

#clipstable .creatorcol {
    width: 20%;
}

#clipstable .smallcolumn {
    width: 10%;
}

#gameinfo {
    overflow-y: scroll;
    height: 85vh;
}

#gamevideo {
   
}

#clipdescription {
    height:80px;
    font-size:12px;
}

#refereestable nosort {
    background-image: none !important;
}

.legend .row:nth-of-type(odd) div {
    background-color: antiquewhite;
}

.legend .row:nth-of-type(even) div {
    background: #FFFFFF;
}


.matchclock {
    font-weight: 600;
    font-size:larger;
    max-width: 100px;
}



.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.tagbutton {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

.scale-box {
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    color: black;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.scale-box-header {
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    color: black;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.scale-box.markmydecision.selecteddecision {
    border-width: 3px;
    transform: scale(1.3);
}


.scale-box:hover {
    transform: scale(1.1);
}
.remove-btn {
    margin-top: 32px;
}

.video-card {
    overflow: hidden;
}

.video-thumbnail-container {
    height: 100%;
    overflow: hidden;
}

    .video-thumbnail-container img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }


.scrollable-tag-list {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 5px; /* för scroll-indikatorn */
}

.object-fit-cover {
    object-fit: cover;
}

body {
    font-family: 'Noto Sans', sans-serif;
}


/* Menybakgrund */
.navbar {
    background-color: #005293 !important;
}

    /* Länkar i navbaren */
    .navbar .nav-link,
    .navbar .navbar-brand {
        color: #ffffff !important;
        font-weight: bolder !important;
        font-size: 19px !important;
    }

        /* Hover-effekter */
        .navbar .nav-link:hover,
        .navbar .nav-link:focus {
            color: #ffc600 !important;
        }

    /* Dropdown-meny */
    .navbar .dropdown-menu {
        background-color: #005293 !important;
        border: none;
    }

    .navbar .dropdown-item {
        color: #ffffff !important;
    }

        .navbar .dropdown-item:hover,
        .navbar .dropdown-item:focus {
            color: #ffc600 !important;
            background-color: transparent !important;
        }

.videoreportrow
{
    font-size:14px;
}

.table-warning {
    animation: highlightRow 2s ease-in-out;
    background-color: #fff3cd !important;
}

@keyframes highlightRow {
    0% {
        background-color: #ffeeba;
    }

    100% {
        background-color: #fff3cd;
    }
}

.fixed-col {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.accordion-body .table {
    table-layout: fixed;
    font-size: 0.875rem; /* motsvarar ca 14px - 2px = 12px */
}

.accordion-body .table td,
.accordion-body .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specifikt för beskrivningskolumnen (valfritt) */
#videoclipstable td:nth-child(4) {
    max-width: 200px;
}

/* Valfri maxbredd på hela tabellen i accordions */
.accordion-body .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 576px) {
    .scale-box {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem;
    }

    .accordion-header .col-1 {
        padding: 2px;
    }

    .accordion-header small {
        font-size: 0.7rem;
    }
}

@media (max-width: 1084px) {
    .accordion-header small {
        display: none;
    }
}

.descision .accordion-header .accordion-button {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}


@media screen and (max-width: 768px) {
    #gamesTable {
        font-size: 12px;
    }

        #gamesTable th, #gamesTable td {
            white-space: nowrap;
        }
}

@media screen and (max-width: 576px) {
    #gamesTable {
        font-size: 10px;
    }
}

#refereestable {
    font-size: 14px;
}

@media screen and (max-width: 576px) {
    .accordion-button {
        font-size: 14px;
        padding: 0.75rem 1rem;
    }

    table th, table td {
        font-size: 12px;
    }
}


.five-card-grid .video-item {
    width: 20%; /* 5 per rad */
}

@media (max-width: 1400px) {
    .five-card-grid .video-item {
        width: 25%; /* 4 per rad på mindre skärmar */
    }
}

@media (max-width: 992px) {
    .five-card-grid .video-item {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .five-card-grid .video-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .five-card-grid .video-item {
        width: 100%;
    }
}

.select2-container {
    width: 100% !important;
}

.select2-selection--multiple {
    min-height: 38px; /* matchar .form-control */
}

.tooltip {
    position: absolute !important;
    z-index: 1080; /* säkerställ att den syns över annat */
}

.selected-filter {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 2px 4px;
}

.decision-table {
    
    width: 100%;
    table-layout: fixed; /* Viktigt för att kunna styra kolumnbredd */
}

    .decision-table th,
    .decision-table td {
        vertical-align: top;
        word-break: break-word;
        white-space: normal; /* Viktigt för att tillåta radbrytning överallt */
    }

/* Fixerade bredder för kolumner */
.col-thumbnail {
    width: 100px;
}

.col-id {
    width: 60px;
}

.col-decisiontype {
    width: 260px; /* Lägg till fast bredd */
    font-size: 0.75rem;
}

.col-decisiongameinfo {
    width: 260px; /* Lägg till fast bredd */
    font-size: 0.75rem;
}

.col-decisionvalue {
    width: 80px;
}

/* Beslutskolumn – tillåter radbrytning och tar resten av utrymmet */
.col-decision {
    font-size: 0.75rem;
}

.clip-thumbnail-container img {
    max-width: 100px;
    height: auto;
    cursor: pointer;
}


.scale-box.disabled-click {
    opacity: 0.5;
    pointer-events: none; /* Alternativ till JS-baserad blockering */
    cursor: not-allowed;
}

.date-updated {
    background-color: #d4edda !important; /* ljusgrön bakgrund */
    border-color: #28a745 !important;
}

.clickablerow {
    cursor: pointer;
}

#drawing-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

    #drawing-tools:hover {
        opacity: 1;
    }

.draw-btn {
    background: white;
    border-radius: 50%;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.draw-color {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

@media (max-width: 768px) {
    #drawing-tools {
        display: none !important;
    }
}

.video-icon-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    .video-icon-button:hover {
        opacity: 1;
    }

@media (max-width: 768px) {
    #popup-button-container {
        display: none !important;
    }
}


.accordion-button {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    line-height: 1.2;
}

.accordion-body {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem;
    line-height: 1.3;
}

.accordion-header {
    margin-bottom: 0 !important;
}
.RefereeGradeTable {
    text-align: left !important;
    font-size: 0.9rem !important;
}

.areacolumn {
    width: 30px;
}

#gamesTable.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

    #gamesTable.loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background-color: rgba(255,255,255,0.95);
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    #gamesTable.loading::before {
        content: "Laddar matcher...";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        font-weight: bold;
        font-size: 1.2rem;
        color: #333;
        z-index: 11;
    }

    #gamesTable.loading .fa-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 20%);
        z-index: 11;
        font-size: 1.8rem;
        color: #666;
    }
.clip-action-col {
    width: 40px;
    transition: width 0.3s ease;
    white-space: nowrap;
    vertical-align: top;
}

    .clip-action-col.expanded {
        min-width: 300px;
    }

.icon-panel-wrapper {
    display: flex;
    align-items: flex-start;
}

.toggle-icon {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.icon-panel {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.icon-box {
    text-align: center;
    padding: 6px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 40px;
}

.calendar-slot-container {
    position: relative;
    height: 900px; /* 15h * 60min * 1px = 900px */
    background: repeating-linear-gradient(to bottom, #f8f9fa, #f8f9fa 59px, #e9ecef 60px);
}

.calendar-time-block {
    height: 60px;
    padding-top: 2px;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #dee2e6;
    text-align: right;
    padding-right: 5px;
}

.calendar-col {
    border-left: 1px solid #ccc;
    padding: 0 5px;
}

.calendar-event {
    position: absolute;
    left: 5px;
    right: 5px;
    background-color: #007bff;
    color: black;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 12px;
    overflow: hidden;
}

.group-legend-box {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 6px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.group-legend-item {
    margin-right: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.stream-wrapper {
    padding: 0.5rem;
}

.stream-card {
    height: 100%;
    width: 100%;
}

.stream-body {
    height: 100%;
    padding: 0;
}

.stream-video video {
    height: 100% !important;
    width: 100% !important;
}

.stream-header {
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
}

.stream-container {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    width: 100%;
    margin: 0;
}

.stream-item {
    padding: 0.25rem;
}

.modalcliptimeaddremove {
    display: inline-block;
    background-color: rgba(43, 51, 63, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    user-select: none;
    text-align: center;
}

.modalcliptimeaddremove:hover {
    background-color: rgba(43, 51, 63, 1);
}

#rightCol .accordion .accordion-body {
    overflow: auto;
}


/* ========== Layout (vänster filter + höger schema) ========== */
.assignments-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

.filter-panel {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

    .filter-panel .form-group {
        margin-bottom: 10px;
    }

.series-list {
    max-height: 260px;
    overflow: auto;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
}

.schedule-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.toolrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* ========== Schema: scroll & sticky kolumn/huvud ========== */
#scheduleContainer {
    overflow-x: auto; /* horisontell scroll */
    overflow-y: hidden;
    width: 100%;
}

/* Låt tabellen bli bredare än containern -> ger scroll när många datum */
table#scheduleTable {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto; /* låt kolumner ta plats */
    width: auto; /* växer med antalet kolumner */
    min-width: 900px; /* grundbredd så det inte hoppar */
}

/* Sticky header */
#scheduleTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
}

/* Sticky första kolumnen (rubrik + cell) */
#scheduleTable th.referee-col,
#scheduleTable td.referee-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
    min-width: 220px;
    text-align: left;
}

/* Datumkolumner: minsta bredd för att motverka ihoptryckning */
#scheduleTable th.date-col,
#scheduleTable td.date-col {
    min-width: 90px;
}

/* Celler */
#scheduleTable td {
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    padding: 6px 4px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

    #scheduleTable td.empty {
        cursor: default;
    }

/* Valfritt: ljus bakgrund på helgkolumner */
#scheduleTable thead th.wknd,
#scheduleTable tbody td.wknd {
    background-color: #fff1f2; /* mycket ljus röd/rosa */
}


/* ========== Badges (L / AD / D) – hög kontrast ========== */
#scheduleTable td .badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 12px;
    margin: 1px 2px;
    font-weight: 700;
    border: 1px solid transparent;
}

/* D = Domare (exempel: blå) */
.ev-D {
    background: #2563eb;
    color: #fff;
    border-color: #1e40af;
}

/* AD = Assisterande (exempel: orange) */
.ev-AD {
    background: #d97706;
    color: #fff;
    border-color: #92400e;
}

/* L = Ledig (exempel: röd) */
.ev-L {
    background: #dc2626;
    color: #fff;
    border-color: #991b1b;
}

/* Låt bara själva schemakontainern scrolla */
.schedule-panel {
    overflow: hidden; /* hindra panelen från att få egna scrollbars */
}

#scheduleContainer {
    overflow: auto; /* båda axlarna scrollar här */
    max-height: 70vh; /* justera höjd efter behov */
    -webkit-overflow-scrolling: touch; /* smooth scroll på iOS */
}

/* Datumkolumnernas min-bredd + tabellbredden gör att horisontell scroll triggas */
#scheduleTable {
    width: auto; /* låt tabellen bli bredare än containern */
    table-layout: auto;
}

#scheduleTable th.date-col,
#scheduleTable td.date-col {
    min-width: 90px; /* tvingar horisontell scroll när många dagar */
}

    /* Headerlayout: badge över datum */
    #scheduleTable th.date-col .date-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    #scheduleTable th.date-col .date-label {
        line-height: 1;
    }

    #scheduleTable th.date-col .date-badge {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 700;
        background: #334155; /* mörk skiffer */
        color: #fff;
    }
    /* valfritt: annan färg på helger */
    #scheduleTable thead th.wknd .date-badge {
        background: #991b1b;
    }

/* Roller-knappar i modalen */
.games-roles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

    .games-roles .btn-role {
        padding: 3px 8px;
        font-size: 12px;
    }

/* Badge för lokala tillsättningar (skilj från D/AD/L) */
.badge-local {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 12px;
    margin: 1px 4px 0 0;
    font-weight: 700;
    background: #7c3aed; /* lila */
    color: #fff;
    border: 1px solid #5b21b6;
    cursor: pointer; /* klickbar för borttag */
}

    .badge-local:hover {
        opacity: .9;
    }
.local-assignments-panel .toolrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.local-assignments-panel td .fogis-link {
    white-space: nowrap;
}

.local-assignments-panel .btn-del {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

    .local-assignments-panel .btn-del:hover {
        opacity: .8;
    }

.app-loader.hidden {
    display: none;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
}

.app-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
}

.app-loader__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: grid;
    gap: .75rem;
    place-items: center;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.app-loader__ring {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #0d6efd;
    border-radius: 9999px;
    animation: app-spin 1s linear infinite;
}

.app-loader__text {
    font-size: .95rem;
    color: #111827;
}

@keyframes app-spin {
    to {
        transform: rotate(360deg);
    }
}

tr.clip-comment-row td {
    background: rgba(0,0,0,0.03);
    font-size: 0.95em;
}


/* ============================
   RefereeClips Splash
   ============================ */

.rc-splash-body {
    margin: 0;
}

/* Fullscreen container */
.rc-splash {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: #061a3a;
}

/* Fancy background (gradient + glow) */
.rc-splash-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(255, 212, 0, 0.20), transparent 55%), radial-gradient(900px 500px at 80% 20%, rgba(225, 6, 0, 0.18), transparent 55%), radial-gradient(1000px 600px at 50% 100%, rgba(27, 79, 179, 0.45), transparent 60%), linear-gradient(135deg, #061a3a 0%, #0d2d6c 45%, #1b4fb3 100%);
    filter: saturate(1.05);
}

/* Card */
.rc-splash-card {
    position: relative;
    width: min(720px, 100%);
    border-radius: 20px;
    padding: 34px 34px 24px 34px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

/* Brand row */
.rc-brand {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
}

.rc-logo {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.rc-title-main {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.05;
}

.rc-title-accent {
    color: #FFD400;
}

.rc-title-sub {
    margin-top: 8px;
    font-size: 16px;
    opacity: 0.88;
}

/* Actions */
.rc-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rc-btn-login {
    background: #FFD400;
    color: #061a3a;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 28px;
    border: 0;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.12s ease, filter 0.12s ease;
}

    .rc-btn-login:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
        color: #061a3a;
        text-decoration: none;
    }

.rc-hint {
    opacity: 0.85;
    font-size: 14px;
}

/* Footer */
.rc-footer {
    margin-top: 26px;
    font-size: 12px;
    opacity: 0.75;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .rc-splash-card {
        padding: 26px 22px 18px 22px;
        border-radius: 16px;
    }

    .rc-logo {
        width: 64px;
        height: 64px;
    }

    .rc-title-main {
        font-size: 34px;
    }
}
/* ============================
   Login card tweaks
   ============================ */

.rc-login-card {
    width: min(520px, 100%);
    padding: 30px 30px 22px 30px;
}

.rc-brand-compact {
    margin-bottom: 18px;
}

.rc-logo-sm {
    width: 68px;
    height: 68px;
}

.rc-title-main-sm {
    font-size: 34px;
}

.rc-login-form {
    margin-top: 10px;
}

.rc-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    opacity: 0.95;
}

.rc-field {
    margin-bottom: 18px;
}

.rc-input {
    width: 90%;
    height: 56px; /* större höjd */
    padding: 0 16px; /* mer luft */
    font-size: 16px; /* större text */
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
    transition: all 0.15s ease;
}

    .rc-input:focus {
        background: rgba(255,255,255,0.18);
        color: #fff;
        border-color: rgba(255, 212, 0, 0.7);
        box-shadow: 0 0 0 0.25rem rgba(255, 212, 0, 0.20);
    }


.rc-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    opacity: 0.95;
}

    .rc-check input {
        width: 18px;
        height: 18px;
    }

.rc-forgot {
    font-size: 14px;
    opacity: 0.9;
}

.rc-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

    .rc-link:hover {
        color: #FFD400;
        text-decoration: none;
    }

.rc-actions-login {
    margin-top: 18px;
}

.rc-btn-login-wide {
    width: 100%;
    text-align: center;
}

.rc-validation {
    margin-bottom: 10px;
}

/* placeholder color */
.rc-input::placeholder {
    color: rgba(255,255,255,0.65);
}

/* Fix för Bootstrap validation text på mörk bakgrund */
.text-danger {
    color: #ffb3b3 !important;
}


.rc-warning-card {
    text-align: center;
}

.rc-warning-message {
    margin: 20px 0 10px 0;
    font-size: 15px;
    opacity: 0.95;
}

.rc-warning-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #061a3a;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.rc-actions-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}


/* ============================
   RefereeClips brand theme
   ============================ */
:root {
    --rc-bg: #061a3a;
    --rc-primary: #0d2d6c;
    --rc-secondary: #1b4fb3;
    --rc-accent: #FFD400;
    --rc-danger: #E10600;
    --rc-surface: rgba(255,255,255,0.96);
    --rc-border: rgba(13,45,108,0.12);
    --rc-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Säg till Bootstrap att "primary" är vår blå */
:root {
    --bs-primary: var(--rc-primary);
    --bs-danger: var(--rc-danger);
    --bs-warning: var(--rc-accent);
}

/* Lite "app-känsla" i inloggat läge */
body.rc-auth {
    background: radial-gradient(900px 500px at 20% 0%, rgba(255,212,0,0.10), transparent 55%), radial-gradient(900px 500px at 80% 10%, rgba(225,6,0,0.08), transparent 60%), linear-gradient(135deg, rgba(6,26,58,0.04), rgba(13,45,108,0.05));
}

/* ============================
   RefereeClips navbar
   ============================ */
.rc-navbar {
    background: linear-gradient(135deg, var(--rc-bg), var(--rc-primary), var(--rc-secondary));
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

    .rc-navbar .navbar-brand,
    .rc-navbar .nav-link {
        color: rgba(255,255,255,0.92) !important;
    }

        .rc-navbar .nav-link:hover {
            color: #fff !important;
        }

        .rc-navbar .nav-link.active,
        .rc-navbar .nav-link:focus {
            color: var(--rc-accent) !important;
        }

    .rc-navbar .dropdown-menu {
        border-radius: 14px;
        border: 1px solid var(--rc-border);
        box-shadow: var(--rc-shadow);
    }

    /* toggler ikon ljus */
    .rc-navbar .navbar-toggler {
        border-color: rgba(255,255,255,0.25);
    }

    .rc-navbar .navbar-toggler-icon {
        filter: invert(1) grayscale(1) brightness(2);
    }


/* ============================
   Buttons
   ============================ */
.btn-primary {
    background-color: var(--rc-accent);
    border-color: var(--rc-accent);
    color: var(--rc-bg);
    font-weight: 800;
}

    .btn-primary:hover {
        background-color: #ffdf40;
        border-color: #ffdf40;
        color: var(--rc-bg);
    }

.btn-outline-primary {
    border-color: rgba(255,255,255,0.55);
    color: rgba(255,255,255,0.95);
}

/* ============================
   Surfaces (cards, tables)
   ============================ */
.card, .modal-content, .dropdown-menu, .list-group-item {
    border-radius: 16px;
    border-color: var(--rc-border);
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.table {
    background: var(--rc-surface);
    border-radius: 14px;
    overflow: hidden;
}

    .table thead th {
        background: rgba(13,45,108,0.06);
        border-bottom: 1px solid var(--rc-border);
    }

/* =================================
   Global: ta bort padding i tabeller
   ================================= */

table th,
table td {
    padding: 4px !important;
}


/* =========================================
   RefereeClips - Splash style for modals
   (Bootstrap modal)
   ========================================= */

/* Backdrop */
.modal-backdrop.show {
    opacity: 0.78;
    background: linear-gradient(135deg, #061a3a 0%, #0d2d6c 45%, #1b4fb3 100%);
}

/* Modal content = glass card */
.modal .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.40);
    color: #fff;
}

/* Header */
.modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 16px 18px;
}

.modal .modal-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* Body */
.modal .modal-body {
    padding: 18px;
}

/* Close button (white) */
.modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.85;
}

    .modal .btn-close:hover {
        opacity: 1;
    }

/* Lists inside modal */
.modal .list-group-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    margin-bottom: 8px;
}

/* Sub-headings inside modal */
.modal h6 {
    margin-top: 14px;
    font-weight: 800;
    opacity: 0.95;
}

/* Make "text-primary" pop in dark modal */
.modal .text-primary {
    color: #FFD400 !important; /* gul accent i modal */
}
/* Card thumbnail */
.fr-thumb-wrap {
    position: relative;
    cursor: pointer;
    background: #f5f6f8;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
}

.fr-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.fr-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s ease;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 2rem;
}

.fr-thumb-wrap:hover .fr-thumb-overlay {
    opacity: 1;
}

.fr-meta {
    font-size: .85rem;
    color: rgba(0,0,0,0.65);
}

.fr-actions {
    gap: .5rem;
}

.fr-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .fr-thumb {
        height: 160px;
    }
}
