﻿/* Drakbat Theme CSS - Admin */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #dcdfde;
    --text-color: #212529;
}

html, body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

.layout{
    display: flex;
    min-height: 100vh;
}

/* Card */
.card {
    display: flex;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    width: auto;
    min-height: 100vh;
    
}
.card-header {
    background: #ffffff;
    font-weight: 500;
    border-bottom: none;
    margin-bottom: 20px;
    padding: 20px;
}

.card-btn {
    background-color: #383838;
    color: white;
    width: 250px;
    padding: 8px;
    border-radius: 20px;
    font-size: 15px;
    margin-top: 20px;
    cursor: pointer;
}
    .card-btn:hover {
        background-color: #5b5b5b;
        color: white;
    }   


.save-btn {
    background-color: #383838;
    color: white;
    width: 100px;
    padding: 5px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    align-content: center;
}
.save-btn:hover {
    background-color: #5b5b5b;
    color: white;
}

.modal-backdrop {
    background: rgba(2,2,2,2);
}

.modal-dialog{
    margin-top: 0.5rem;
}

.modal-content {
    padding: 5px 10px 5px 10px;
    pointer-events: auto;
    border: none;
    width: fit-content;
    height: fit-content;
}

.modal-header{
    display: flex;
    flex-direction: row-reverse;
    border-bottom: none;
    padding: 0px;
    margin: 0;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

    .form-field .form-control
    .form-field .form-select {
        width: 100%;
        box-sizing: border-box;
    }


.form-label {
    font-size: 14px;
    font-weight: 500;
}

.modal-title {
    font-size: 16px;
    font-style: normal;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-section {
    margin: 0.5rem;
}


.klass-title{
    font-size: 15px;
    font-weight: 600;
}


.modal-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    padding: 15px;
    margin-bottom: 10px;
    border: none;
}

.deletemodal{
    padding: 25px;
    text-align: start;
    
}

.delete-btn {
    background-color: #383838;
    color: white;
    width: 100px;
    padding: 5px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    align-content: center;
}

    .delete-btn:hover {
        background-color: #5b5b5b;
        color: white;
    }


/* Startsidan */


.title {
    font-weight: 700;
    font-size: 32px;
    font-style: normal;
    justify-content: center;
    display: flex;
}

.text-container {
    margin: 0.5rem;
    justify-content: center;
    display: flex;
    font-size: 1rem;
    font-weight: 400;
}

.page-container {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.page-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}
.page-buttons2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.page-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #383838;
    color: white;
    width: 200px;
    height: auto;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;

}

    .page-btn:hover{
        background-color: #5b5b5b;
    }



@media (min-width: 641px){
 
    .page-buttons{
        flex-direction: column;
    }

    .page-btn{
      flex: 1;
      min-width: 220px;
      max-width: 440px;
    }
}

@media (min-width: 1041px) {
    .page-buttons{
        flex-direction: row;
    }

    .page-btn{
        flex: 0 1;
        min-width: 220px;
        max-width: 440px;
    }

}
.page-btn-2 {
    display: flex;
    flex-direction: column;
    background-color: #383838;
    color: white;
    height: auto;
    min-width: 70px;
    max-width: 440px;
    padding: 8px 22px;
    font-weight: 600;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

    .page-btn-2:hover {
        background-color: #5b5b5b;
    }

/* Andra sidor */

.page-container-2{
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0.5rem;

}
.title-2 {
    font-weight: 700;
    font-size: 1.25rem;
    font-style: normal;
    display: flex;
}


.text-container-2 {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 400;
    line-height: 160%;
}

.title-container{
    display: flex;
    flex-direction: row;
}


.senast-uppdaterad{
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    margin-left: auto;
    gap: 0.5rem;
    font-size: 12px;
    color:#6c757d
}

.clock {
    color: #AA7F11;
    font-size: 14px;
}
/* ===========================
   KlassTyp Colors
   =========================== */
:root {
    --color-herr: #1d6b5e; /* Teal    – kontrast 6.33:1 (WCAG AA)  */
    --color-herr-text: #ffffff;
    --color-mix: #4a235a; /* Lila    – kontrast 12.51:1 (WCAG AAA) */
    --color-mix-text: #ffffff;
    --color-dam: #9b1a2a; /* Karmosin– kontrast 8.16:1 (WCAG AAA)  */
    --color-dam-text: #ffffff;
}

/* ===========================
   HeatKort Component
   =========================== */

.heat-kort-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    margin-bottom: 1rem;
    overflow: hidden;
}

.heat-kort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.heat-kort-starttid {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.heat-kort-chips {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.heat-kort-body {
    padding: 0 1rem;
}

.heat-lag-rad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.heat-lag-rad:last-child {
    border-bottom: none;
}

.heat-lag-namn {
    font-weight: 500;
}

.heat-lag-tid {
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}

.badge{
    min-width: 40px;
    max-width: 80px;
}


/* Badge overrides for KlassTyp */
.badge-herr {
    background-color: var(--color-herr) !important;
    color: var(--color-herr-text) !important;
}
.badge-mix {
    background-color: var(--color-mix) !important;
    color: var(--color-mix-text) !important;
}
.badge-dam {
    background-color: var(--color-dam) !important;
    color: var(--color-dam-text) !important;
}

/* Schema section headings */
.schema-sektion-titel {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: #333;
    text-align: left;
}


 /* Komponenter - Avskiljare (Dividers) och LogoTyper */

.page-divider{
    width: 90%;
    margin: 30px 0;
}

.page-divider svg{
    width: 100%;
    height: auto;

}

.page-divider-2 {
    width: 100%;
    margin: 24px 0;
}

    .page-divider-2 svg {
        width: 100%;
        height: auto;
    }

.menu-btn {
    background-color: #383838;
    color: white;
    min-width: 70px;
    max-width: 440px;
    height: auto;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

    .menu-btn:hover:focus {
        background-color: #4a4a4a;
        color: white;
    }

.confirm-dialog .modal-dialog
{
    padding: 25px;
    text-align: start;
    align-content: center;
}

.confirm-dialog .modal-header{
   flex-direction: row;
   margin: 10px;
   
}


.confirm-dialog .modal-title {
   align-content: center;
   font-size: 18px;
}

.confirm-dialog .modal-body {
    padding: 8px;
    font-size: 15px;
}

.confirm-dialog .modal-footer {
    padding: 0;
}

.confirm-dialog .btn-primary {
    background-color: #383838 !important;
    color: white;
    width: 100px;
    padding: 8px;
    border-radius: 20px;
    font-size: 15px;
    margin-top: 20px;
    cursor: pointer;
}
.confirm-dialog .btn-secondary {
    background-color: transparent !important;
    color: #383838;
    text-decoration: underline;
    width: 100px;
    padding: 8px;
    border-radius: 20px;
    font-size: 15px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}