/* static_src/css/dashboard.css */

.dashboard-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   BUTTONS
========================================= */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(51, 65, 85);
    background: rgb(15, 23, 42);
    color: rgb(203, 213, 225);
    transition: 0.2s ease;
}

.btn-icon:hover {
    background: rgb(30, 41, 59);
    color: white;
}

.btn-icon-danger:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: rgb(248, 113, 113);
}


.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-warning {

    display: inline-flex;
    align-items: center;
    gap: 0.375rem;

    height: 3rem;
    padding: 0 1.25rem;

    border-radius: 0.75rem;
    border: 1px solid rgb(51, 65, 85);

    color: white;

    transition: 0.2s ease;
}


.btn-primary:hover {
    background: rgb(30, 41, 59);
}

.btn-secondary:hover {
    background: rgb(24, 97, 25);
}

.btn-danger:hover {
    background: rgb(139, 18, 18);
}

.btn-success:hover {
    background: rgb(21 128 61);
}

.btn-warning:hover {
    background: rgb(180 83 9);
}



/* =========================================
   TABLES
========================================= */

.hh-table {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgb(30, 41, 59);
    background: rgb(15, 23, 42);
}

.hh-table table {
    width: 100%;
    border-collapse: collapse;
}

.hh-table thead tr {
    border-bottom: 1px solid rgb(30, 41, 59);
    background: rgba(2, 6, 23, 0.5);
}

.hh-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(148, 163, 184);
}

.hh-table td {
    padding: 1rem;
}

.hh-table tbody tr {
    border-bottom: 1px solid rgb(30, 41, 59);

    transition: 0.2s ease;
}

.hh-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* =========================================
   TABLE CELL ALIGNMENT
========================================= */

.hh-table td.td-center,
.hh-table th.td-center {
    text-align: center !important;
}

.hh-table td.td-center .badge {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.hh-table td.td-action,
.hh-table th.td-action {
    text-align: right !important;
}

/* =========================================
   BADGES
========================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 500;
}

.badge-warning {
    background: rgba(245,158,11,.1);
    color: rgb(251,191,36);
}

.badge-info {
    background: rgba(59,130,246,.1);
    color: rgb(96,165,250);
}

.badge-success {
    background: rgba(16,185,129,.1);
    color: rgb(52,211,153);
}

.badge-reopen {
    background: rgba(14, 144, 101, 0.1);
    color: rgb(30, 149, 105);
}

.badge-error {
    background: rgba(220,38,38,.1);
    color: rgb(220,38,38);
}

.badge-kopieren {
    background: rgba(107, 114, 128, 0.1);
    color: rgb(107, 114, 128);
}

.badge-trainer {
    background: rgb(30, 41, 59);
    color: rgb(203, 213, 225);
    border: 1px solid rgb(51, 65, 85);
    cursor: pointer;
    transition: .2s ease;
}

.badge-trainer:hover {
    background: rgb(51, 65, 85);
}

/* =========================================
   MODALS
========================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: min(800px, 90vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgb(30, 41, 59);
    background: rgb(15, 23, 42);
    color: white;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgb(30, 41, 59);
}

.modal-body {
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
    overflow-y: auto;
}


.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgb(30, 41, 59);
    flex-shrink: 0;
}

.modal-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(51, 65, 85);
    background: rgb(2, 6, 23);
    color: white;
}

.modal-input:focus {
    outline: none;

    border-color: rgb(59, 130, 246);
}


.form-label {
    display: block;
    margin-bottom: .5rem;
    font-size: .875rem;
    color: rgb(148, 163, 184);
}

.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #111;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.flag {
    height: 14px;
    width: 22px;
    object-fit: contain;
}

.error {
    color: red;
    font-size: 12px;
}

.player-list {
    max-height: 400px;
    overflow-y: auto;
}


.modal-input,
.form-input,
select,
textarea {

    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(51, 65, 85);
    background: rgb(2, 6, 23);
    color: white;
}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: rgb(59, 130, 246);

}


/* =========================================
   SIDEBAR LINKS
========================================= */

.sidebar-link {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    gap: .5rem;
    margin-bottom: .25rem;
    border-radius: .75rem;
    color: rgb(203 213 225);
    transition: .2s ease;
}

.sidebar-link:hover {
    background: rgb(30 41 59);
    color: white;
}

.sidebar-link-active {
    background: rgb(30 41 59);
    color: white;
    border-left: 3px solid rgb(59 130 246);
}

/* =========================================================
   Sidebar Submenu
========================================================= */

.sidebar-submenu {
    margin-left: 2.5rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    
}

.sidebar-submenu-link {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: rgb(203 213 225);
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    border-radius: 0 0.5rem 0.5rem 0;
}

.sidebar-submenu-link:hover {
    color: white;
    background: rgb(30 41 59);
}

.sidebar-submenu-link-active {
    color: white;
    border-left-color: rgb(251 191 36);
    background: rgba(251, 191, 36, 0.08);
}

/* =========================================================
   Progress Animation
========================================================= */

.progress-anim {
    transition: width 0.6s ease;
}

.acc {
    transition: all 0.25s ease;
}


/* =========================================
   CARDS
========================================= */

.card {
    border-radius: 1rem;
    border: 1px solid rgb(30, 41, 59);
    background: rgb(15, 23, 42);
    padding: 1.5rem;
}

.card-section {
    margin-bottom: 1.5rem;
}

/* =========================================
   GRID INPUTS
========================================= */

.grid-input {
    width: 100%;
    min-width: 5rem;

    padding: .5rem;

    border-radius: .5rem;

    border: 1px solid rgb(51, 65, 85);

    background: rgb(15, 23, 42);

    color: white;

    text-align: center;
}

.grid-input:focus {
    outline: none;
    border-color: rgb(59, 130, 246);
}

.grid-input-sm {
    min-width: 0;
    height: 2.5rem;
    padding: 0 .75rem;
    font-size: .875rem;
}

/* =========================================
   PRINT
========================================= */

@media print {
    @page {
        size: A4;
        margin: 16mm;
    }

    body {
        background: white !important;
        font-size: 11px;
    }

    .no-print {
        display: none !important;
    }

    .w-full {
        max-width: 100% !important;
    }

    .shadow {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
    }

    #radarChart,
    #polarChart {
        max-height: 260px !important;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 260px !important;
        display: block;
        margin: 0 auto;
    }

    .mb-6 {
        margin-bottom: 8px !important;
    }

    .mt-6 {
        margin-top: 8px !important;
    }

    .text-sm {
        font-size: 10px !important;
    }

    .text-xs {
        font-size: 9px !important;
    }

    #title {
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center;
        border-bottom: 1px solid #ccc;
        padding-bottom: 2px;
        margin-bottom: 4px;
    }

    #meta {
        font-size: 9px !important;
        margin-top: 0;
    }
}
