/* static_src/css/dashboard.css */

.dashboard-content {
    max-width: 1400px;
    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 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    height: 3rem;
    padding: 0 1.25rem;

    border-radius: 0.75rem;

    border: 1px solid rgb(51, 65, 85);
    background: rgb(15, 23, 42);

    color: white;

    font-weight: 500;

    transition: 0.2s ease;
}

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


.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    height: 3rem;
    padding: 0 1.25rem;

    border-radius: 0.75rem;

    border: 1px solid rgb(51, 65, 85);
    background: rgb(15, 23, 42);

    color: white;

    transition: 0.2s ease;
}

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

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    height: 3rem;
    padding: 0 1.25rem;

    border-radius: 0.75rem;

    border: 1px solid rgb(51, 65, 85);
    background: rgb(15, 23, 42);

    color: white;


    transition: 0.2s ease;
}

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


/* =========================================
   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);
}

/* =========================================
   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-error {
    background: rgba(220,38,38,.1);
    color: rgb(220,38,38);
}


/* =========================================
   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);

}