/* ==========================================================
   COOPS - TAKIM YÖNETİM PANELİ STYLES (1:1 Exact Match)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #08080a !important;
    background-image:
        linear-gradient(to right, rgba(220, 38, 38, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(220, 38, 38, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 15%, rgba(180, 20, 30, 0.35) 0%, rgba(8, 8, 10, 0.98) 75%) !important;
    background-size: 28px 28px, 28px 28px, 100% 100% !important;
    background-repeat: repeat, repeat, no-repeat !important;
    background-attachment: fixed !important;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* TOP HEADER BAR */
.panel-top-header {
    background: #0e0f12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.panel-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.panel-title span {
    color: #ffffff;
    font-weight: 800;
}

.panel-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-back-home:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

/* SUB HEADER BAR */
.panel-sub-header {
    background: #0a0b0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 28px;
    font-size: 11px;
    color: #8e8e93;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.2px;
}

.auth-badge {
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-badge i, .auth-badge .square-icon {
    font-size: 9px;
}

/* MAIN CONTAINER */
.panel-container {
    width: 100%;
    max-width: 1560px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* CARDS / SECTIONS */
.panel-card {
    background: #111317;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    width: 100%;
    box-sizing: border-box;
}

.panel-card-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TABLES */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}

.panel-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    margin-top: 6px;
}

.panel-table thead tr {
    background: #181a20;
}

.panel-table th {
    padding: 12px 14px;
    text-align: left;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.panel-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #e2e8f0;
    vertical-align: middle;
    white-space: nowrap;
}

.panel-table select.input-field {
    min-width: 120px;
    padding: 6px 10px;
    box-sizing: border-box;
    background-color: #181a20;
    color: #ffffff;
}

.panel-table th:last-child,
.panel-table td:last-child {
    text-align: right;
    white-space: nowrap;
    min-width: 240px;
    padding-right: 18px;
}

/* SQUAD TABLE SPECIFIC COLUMN REDISTRIBUTION */
.squad-table {
    min-width: 1340px;
}

.squad-table th {
    padding: 14px 14px;
}

.squad-table td {
    padding: 16px 14px;
    vertical-align: middle;
    text-overflow: clip !important;
    overflow: visible !important;
}

.squad-table th:nth-child(1), .squad-table td:nth-child(1) { width: 15%; min-width: 140px; }
.squad-table th:nth-child(2), .squad-table td:nth-child(2) { width: 17%; min-width: 170px; }
.squad-table th:nth-child(3), .squad-table td:nth-child(3) { width: 7%; min-width: 80px; text-align: center; }
.squad-table th:nth-child(4), .squad-table td:nth-child(4) { width: 12%; min-width: 140px; }
.squad-table th:nth-child(5), .squad-table td:nth-child(5) { width: 12%; min-width: 140px; }
.squad-table th:nth-child(6), .squad-table td:nth-child(6) { width: 11%; min-width: 130px; }
.squad-table th:nth-child(7), .squad-table td:nth-child(7) { width: 16%; min-width: 200px; }
.squad-table th:nth-child(8), .squad-table td:nth-child(8) { width: 20%; min-width: 250px; text-align: right; padding-right: 18px; }

.squad-table td select.input-field {
    min-width: 130px;
    padding: 8px 28px 8px 12px;
    box-sizing: border-box;
    background-color: #181a20;
    color: #ffffff;
    height: 38px;
    border-radius: 6px;
    font-size: 12px;
    text-overflow: clip !important;
    overflow: visible !important;
}

.squad-table td input.input-field {
    height: 38px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 12px;
}

.panel-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* BADGES */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-orange {
    background: rgba(249, 115, 22, 0.18);
    color: #f97316;
    border: 1px solid #f97316;
}

.badge-green {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-pending {
    color: #f97316;
    font-weight: 700;
}

/* BUTTONS */
.btn-action {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-right: 6px;
    transition: all 0.15s ease;
}

.btn-approve {
    background: #10b981;
    color: #ffffff;
}
.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: #ef4444;
    color: #ffffff;
}
.btn-reject:hover {
    background: #dc2626;
}

.btn-edit {
    background: #3b82f6;
    color: #ffffff;
}
.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #ef4444;
    color: #ffffff;
}
.btn-delete:hover {
    background: #dc2626;
}

.btn-update-info {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-update-info:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* INPUT FIELDS */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11px;
    color: #a1a1aa;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-field {
    background: #181a20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: rgba(220, 38, 38, 0.6);
}

.input-field.disabled, .input-field:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #14161b;
}

/* SPLASH SCREEN OVERLAY (100% SOLID - IMAGE 3 SPEC) */
#custom-return-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0b0d !important;
    background-image: radial-gradient(circle at center, rgba(180, 20, 30, 0.35) 0%, #0a0b0d 75%) !important;
    z-index: 99999999 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.splash-emblem {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(220, 38, 38, 0.7));
    margin-bottom: 22px;
    animation: splashPulse 2.4s infinite ease-in-out;
}

.splash-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95));
    margin-bottom: 24px;
}

.splash-progress-track {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.splash-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #880808, #dc2626, #ff4d4d);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.9);
    border-radius: 6px;
    transition: width 3.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.splash-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    letter-spacing: 3px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(220, 38, 38, 0.4)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 32px rgba(220, 38, 38, 0.85)); }
}

/* ==========================================================
   TAKIM OYUNCULARI MODÜLÜ (STRICT STYLING & CARDS)
   ========================================================== */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 1400px) {
    .player-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .player-cards-grid {
        grid-template-columns: 1fr;
    }
}

.player-card-item {
    background: #111317 !important;
    border: 1px solid #1e1e24 !important;
    border-radius: 20px !important;
    padding: 24px !important;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    min-height: 180px;
    animation: cardFadeIn 0.25s ease-out forwards;
}
.player-card-item:hover {
    background: #111111 !important;
    border-color: #E30613 !important;
    box-shadow: 0 0 25px rgba(227, 6, 19, 0.45);
    transform: translateY(-2px);
}

.gender-switch-btn:hover {
    color: #ffffff !important;
}

.unit-filter-btn {
    background: #111317;
    color: #a1a1aa;
    border: 1px solid #27272a;
}
.unit-filter-btn:hover {
    color: #ffffff;
    border-color: #3f3f46;
}
.unit-filter-btn.active, .unit-filter-btn.btn-cyan {
    background: #E30613 !important;
    color: #ffffff !important;
    border-color: #ff3333 !important;
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.4);
}
.player-card-hover-btn {
    position: absolute;
    top: 56px;
    right: 18px;
    background: #E30613;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.7);
    pointer-events: none;
    z-index: 5;
}
.player-card-item:hover .player-card-hover-btn {
    opacity: 1;
    transform: translateY(0);
}

.player-card-hover-btn-inline {
    background: #E30613;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.7);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}
.player-card-item:hover .player-card-hover-btn-inline {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.player-avatar-56 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #181a20;
    border: 2px solid #E30613;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
}

.player-num-oswald {
    font-family: 'Oswald', 'Orbitron', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #E30613 !important;
    line-height: 1;
}
    color: #881a15 !important;
    line-height: 1;
}

.player-card-body h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
}

.player-card-pos {
    font-size: 12px;
    font-weight: 800;
    color: #881a15 !important;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.player-card-meta {
    font-size: 11px;
    color: #ffffff !important;
    display: flex;
    gap: 10px;
    opacity: 0.9;
}

/* PLAYER DETAIL MODAL */
.player-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.player-modal-content {
    background: #0d0d0d !important;
    border: 1px solid #1a1a1a;
    border-top: 3px solid #f21c1c !important;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    color: #ffffff;
    position: relative;
    box-sizing: border-box !important;
}

.player-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.player-modal-close:hover {
    background: rgba(242, 28, 28, 0.3);
    box-shadow: 0 0 12px rgba(242, 28, 28, 0.5);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .player-modal-overlay {
        padding: 10px !important;
    }
    .player-modal-content {
        width: 95% !important;
        max-width: 100% !important;
        margin: 5px auto !important;
        padding: 20px 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }
    .player-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    .metrics-grid,
    .player-modal-content div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .player-stat-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .player-modal-overlay {
        padding: 6px !important;
    }
    .player-modal-content {
        width: 100% !important;
        padding: 16px 10px !important;
    }
    .metrics-grid,
    .player-modal-content div[style*="grid-template-columns"]:not(.player-info-grid) {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* 2x2 Player Info Stats Grid (BOY, KİLO, YAŞ, MAÇ) */
.player-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 16px 0 24px 0 !important;
    text-align: center;
}
.player-info-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 12px 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-box {
    background: #0d0d0d !important;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 12px;
}
.metric-box label {
    display: block;
    font-size: 10px;
    color: #ffffff !important;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 600;
}
.metric-box input {
    background: #181a20 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.team-filter-btn.active {
    box-shadow: 0 0 20px rgba(242, 28, 28, 0.4) !important;
    border-color: #f21c1c !important;
}

/* Custom Thin Scrollbar for Player Modal & App */
.player-modal-content::-webkit-scrollbar {
    width: 6px;
}
.player-modal-content::-webkit-scrollbar-track {
    background: #050505;
    border-radius: 8px;
}
.player-modal-content::-webkit-scrollbar-thumb {
    background: #E30613;
    border-radius: 8px;
}
.player-modal-content::-webkit-scrollbar-thumb:hover {
    background: #b5050f;
}

/* Player Stat Card Standards & Hover Effects */
.player-stat-card {
    background: #0d0d0d !important;
    border: 1px solid #1e1e24 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    transition: all 0.25s ease !important;
}
.player-stat-card:hover {
    border-color: #E30613 !important;
    box-shadow: 0 0 16px rgba(227, 6, 19, 0.35) !important;
    transform: translateY(-2px);
}

/* Global Mobile Responsiveness & Form Box-Sizing Fixes */
.table-responsive,
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
}

/* Switch Toggle Slider Styling */
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #27272a;
    transition: .3s;
    border-radius: 24px;
    border: 1px solid #3f3f46;
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-toggle input:checked + .slider-round {
    background-color: #E30613;
    border-color: #E30613;
}
.switch-toggle input:checked + .slider-round:before {
    transform: translateX(20px);
}

