﻿/* ========================================
   DRAFT LOBBY STYLES
   ======================================== */

/* Hero Banner - Full Width */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    overflow: hidden;
    max-height: 300px;
}

    .hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Header Row */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    margin-bottom: 20px;
}

    .header-row .page-title {
        color: white;
        margin: 0;
        font-size: 28px;
        font-weight: 700;
    }

    .header-row .draft-actions {
        display: flex;
        gap: 12px;
    }

    .header-row .btn-secondary {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s;
        text-decoration: none;
    }

        .header-row .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
        }

/* Draft Content */
.draft-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

.draft-loading,
.draft-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
}

.draft-error {
    color: #dc3545;
    background: #fef2f2;
    border-radius: 8px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 16px;
    width: fit-content;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .status-indicator.connected {
        background: #22c55e;
        box-shadow: 0 0 6px #22c55e;
    }

    .status-indicator.disconnected {
        background: #ef4444;
        box-shadow: 0 0 6px #ef4444;
    }

/* Draft Layout */
.draft-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
}

/* Panels */
.draft-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

    .panel-header h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #1e3a5f;
    }

.panel-count {
    font-size: 14px;
    color: #64748b;
    background: #e5e7eb;
    padding: 2px 10px;
    border-radius: 12px;
}

.panel-content {
    padding: 16px;
    max-height: 450px;
    overflow-y: auto;
}

/* ========================================
   MAIN PANEL WITH STICKY HEADER
   ======================================== */

.main-panel {
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.main-panel-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.sticky-phase-info {
    flex: 1;
}

.sticky-phase-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.sticky-phase-description {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Timer Section Container */
.sticky-timer-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    position: relative;
}

    .sticky-timer .timer-label {
        font-size: 11px;
        text-transform: uppercase;
        opacity: 0.8;
    }

    .sticky-timer .timer-value {
        font-size: 28px;
        font-weight: 700;
        font-family: 'Courier New', monospace;
        transition: all 0.3s ease;
    }

        .sticky-timer .timer-value.urgent {
            color: #fca5a5;
            animation: pulse 1s ease-in-out infinite;
        }

        .sticky-timer .timer-value.paused {
            color: #fcd34d;
            opacity: 0.8;
        }

/* Timer Paused Badge */
.timer-paused-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #f59e0b;
    color: #1e3a5f;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    animation: pauseBadgePulse 2s ease-in-out infinite;
}

@keyframes pauseBadgePulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Pause/Resume Timer Button */
.btn-pause-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-pause-timer:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .btn-pause-timer svg {
        flex-shrink: 0;
    }

    .btn-pause-timer.paused {
        background: #22c55e;
        border-color: #16a34a;
    }

        .btn-pause-timer.paused:hover {
            background: #16a34a;
            border-color: #15803d;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.main-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* ========================================
   EMBEDDED DRAFT LOG
   ======================================== */

.embedded-draft-log {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.embedded-log-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

    .embedded-log-header h4 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #64748b;
    }

.embedded-draft-log .draft-log {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.log-entry {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

    .log-entry:last-child {
        margin-bottom: 0;
    }

    .log-entry.log-info {
        background: white;
    }

    .log-entry.log-success {
        background: #f0fdf4;
        color: #16a34a;
    }

    .log-entry.log-warning {
        background: #fef3c7;
        color: #b45309;
    }

    .log-entry.log-error {
        background: #fef2f2;
        color: #dc2626;
    }

.log-time {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 8px;
}

/* ========================================
   USERS LIST / DRAFT ORDER
   ======================================== */

.users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

    .user-item.offline {
        opacity: 0.6;
    }

    .user-item.is-me {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
    }

    .user-item.current-picker {
        background: #fef3c7;
        border: 2px solid #f59e0b;
    }

    .user-item.submitted {
        background: #f0fdf4;
    }

.user-position {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .status-dot.connected {
        background: #22c55e;
        box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
    }

    .status-dot.disconnected {
        background: #d1d5db;
    }

.user-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e3a5f;
}

.picking-indicator {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    animation: pulse 1s ease-in-out infinite;
}

.submission-status {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
}

.no-users {
    text-align: center;
    color: #64748b;
    padding: 20px;
    font-style: italic;
}

/* ========================================
   SELECTION PANELS
   ======================================== */

.selection-panel {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

    .selection-panel .panel-header {
        padding: 0;
        background: transparent;
        border-bottom: none;
        margin-bottom: 12px;
    }

.selection-instructions {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

/* MVP Slots */
.mvp-slots {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mvp-slot {
    flex: 1;
    padding: 20px;
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .mvp-slot:hover {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .mvp-slot.selecting {
        border-color: #3b82f6;
        border-style: solid;
        background: #eff6ff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .mvp-slot.filled {
        border-style: solid;
        border-color: #22c55e;
        background: #f0fdf4;
    }

.slot-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.slot-player {
    font-weight: 600;
    color: #1e3a5f;
}

.slot-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .slot-clear:hover {
        background: #dc2626;
    }

/* Buttons */
.btn-submit-mvps,
.btn-start-draft {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

    .btn-submit-mvps:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.submit-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

    .submit-status.success {
        background: #f0fdf4;
        color: #16a34a;
    }

    .submit-status.error {
        background: #fef2f2;
        color: #dc2626;
    }

/* ========================================
   DRAFT AUTO-START COUNTDOWN
   ======================================== */

.draft-countdown-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    margin-bottom: 16px;
}

.countdown-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-icon {
    color: #2563eb;
    flex-shrink: 0;
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-text {
    font-size: 15px;
    font-weight: 500;
    color: #1e3a5f;
}

.countdown-timer {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #2563eb;
    letter-spacing: 0.5px;
}

@keyframes countdownPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Start Panel */
.start-panel {
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.start-hint {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

/* Current Pick Info */
.current-pick-info {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.round-info,
.pick-info {
    padding: 8px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    font-weight: 600;
    color: #16a34a;
}

/* ========================================
   PLAYERS PANEL
   ======================================== */

.players-panel .panel-content {
    padding: 0;
    max-height: 500px;
}

.player-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

    .player-search input {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
    }

        .player-search input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

.players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

    .player-item.selectable:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        transform: translateX(4px);
    }

    .player-item.selected {
        background: #dbeafe;
        border-color: #3b82f6;
    }

    .player-item.unavailable {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .player-item.on-my-team {
        background: #f0fdf4;
        border-color: #86efac;
    }

.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #ccc;
    object-fit: cover;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .player-info .player-name {
        font-weight: 600;
        color: #1e3a5f;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.player-copies {
    font-size: 12px;
    color: #64748b;
}

.on-team-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: #22c55e;
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;
}

.no-players {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

/* ========================================
   MY PICKS PANEL
   ======================================== */

.my-picks-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.my-picks-grid {
    display: flex;
    gap: 24px;
    padding: 20px;
}

.picks-section {
    flex: 1;
}

    .picks-section h4 {
        margin: 0 0 12px 0;
        font-size: 14px;
        text-transform: uppercase;
        color: #64748b;
        font-weight: 600;
    }

.picks-slots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pick-slot {
    flex: 1;
    min-width: 100px;
    padding: 16px;
    background: #f8fafc;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

    .pick-slot.filled {
        border-style: solid;
        border-color: #22c55e;
        background: #f0fdf4;
    }

    .pick-slot.exiled {
        border-color: #f59e0b;
    }

        .pick-slot.exiled.filled {
            background: #fef3c7;
            border-color: #f59e0b;
        }

    .pick-slot span {
        font-size: 12px;
        color: #64748b;
    }

    .pick-slot.filled .pick-player-name {
        font-size: 14px;
        font-weight: 600;
        color: #1e3a5f;
    }

/* ========================================
   AUTO PICK PANEL
   ======================================== */

.auto-pick-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

    .auto-pick-panel .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }

        .auto-pick-panel .panel-header h3 {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: #1e3a5f;
        }

    .auto-pick-panel .panel-header-actions {
        display: flex;
        gap: 8px;
    }

.btn-toggle-autopick {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #3b82f6;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-toggle-autopick:hover {
        background: #2563eb;
    }

/* ========================================
   AUTO PICK - COLLAPSED PREVIEW
   ======================================== */

.auto-pick-collapsed {
    padding: 20px;
}

.auto-pick-preview {
    display: flex;
    gap: 32px;
}

.auto-pick-preview-section {
    flex: 1;
    min-width: 0;
}

    .auto-pick-preview-section h4 {
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.auto-pick-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.auto-pick-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

    .auto-pick-preview-item .position-badge {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e5e7eb;
        color: #64748b;
        border-radius: 50%;
        font-size: 11px;
        font-weight: 600;
        flex-shrink: 0;
    }

.auto-pick-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    object-fit: cover;
    flex-shrink: 0;
}

.auto-pick-preview-item .player-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-pick-empty {
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    padding: 12px 0;
}

/* ========================================
   AUTO PICK - EXPANDED EDIT VIEW
   ======================================== */

.auto-pick-expanded {
    padding: 20px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

    .auto-pick-expanded .auto-pick-instructions {
        font-size: 13px;
        color: #64748b;
        margin: 0 0 20px 0;
        padding: 12px 16px;
        background: #eff6ff;
        border-radius: 8px;
        border-left: 4px solid #3b82f6;
    }

        .auto-pick-expanded .auto-pick-instructions p {
            margin: 0;
        }

.auto-pick-edit-layout {
    display: flex;
    gap: 24px;
}

.auto-pick-selected-panel {
    flex: 1;
    min-width: 0;
}

.auto-pick-available-panel {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.auto-pick-section {
    margin-bottom: 20px;
}

.auto-pick-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .auto-pick-section-header h4 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        color: #1e3a5f;
    }

.auto-pick-section-count {
    font-size: 12px;
    color: #64748b;
    background: #e5e7eb;
    padding: 2px 10px;
    border-radius: 12px;
}

/* MVP Slots in Edit Mode */
.auto-pick-slots.mvp-slots {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.auto-pick-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .auto-pick-slot.empty {
        justify-content: center;
        min-height: 56px;
    }

.auto-pick-slots.mvp-slots .auto-pick-slot {
    flex: 1;
}

.auto-pick-slot:not(.empty) {
    cursor: grab;
    border-style: solid;
    border-color: #22c55e;
    background: #f0fdf4;
}

.auto-pick-slot.drop-highlight {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    border-style: dashed !important;
}

.auto-pick-slot .slot-placeholder {
    font-size: 13px;
    color: #94a3b8;
}

.auto-pick-slot .slot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ccc;
    object-fit: cover;
    flex-shrink: 0;
}

.auto-pick-slot .slot-player-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-pick-slot .slot-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

    .auto-pick-slot .slot-remove-btn:hover {
        opacity: 1;
    }

/* Draft Order Slots in Edit Mode */
.auto-pick-slots.draft-order-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.auto-pick-slot.draft-order-item {
    border-style: solid;
    border-color: #d1d5db;
    background: white;
}

    .auto-pick-slot.draft-order-item:hover {
        border-color: #94a3b8;
    }

.auto-pick-slot .slot-position {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.auto-pick-slot .drag-handle {
    color: #94a3b8;
    cursor: grab;
    font-size: 14px;
    letter-spacing: -2px;
    flex-shrink: 0;
}

.auto-pick-slot.drop-above {
    border-top: 3px solid #3b82f6 !important;
}

.auto-pick-slot.drop-below {
    border-bottom: 3px solid #3b82f6 !important;
}

.draft-order-empty {
    padding: 32px 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: white;
}

    .draft-order-empty.drop-highlight {
        border-color: #3b82f6;
        background: #eff6ff;
        color: #3b82f6;
    }

/* Available Players in Edit Mode */
.auto-pick-available-panel .auto-pick-section-header h4 {
    font-size: 13px;
}

.auto-pick-available-panel .available-search {
    margin-bottom: 12px;
}

.auto-pick-available-panel .player-search-input {
    width: 100%;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1e3a5f;
    font-size: 13px;
}

    .auto-pick-available-panel .player-search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .auto-pick-available-panel .player-search-input::placeholder {
        color: #94a3b8;
    }

.auto-pick-available-panel .available-players-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.available-player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .available-player-item:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .available-player-item.dragging {
        opacity: 0.5;
    }

    .available-player-item .player-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid #ccc;
        object-fit: cover;
        flex-shrink: 0;
    }

    .available-player-item .player-name {
        font-size: 13px;
        font-weight: 500;
        color: #1e3a5f;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.no-players-available {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Save Section */
.auto-pick-save-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .auto-pick-save-section .btn-save {
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
    }

    .auto-pick-save-section .save-status {
        font-size: 13px;
    }

        .auto-pick-save-section .save-status.success {
            color: #16a34a;
        }

        .auto-pick-save-section .save-status.error {
            color: #dc2626;
        }

/* ========================================
   ALL TEAMS PANEL - HORIZONTAL COMPACT DESIGN
   ======================================== */

.all-teams-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.all-teams-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.team-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

    .team-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: #cbd5e1;
    }

    .team-card.is-me {
        border: 2px solid #3b82f6;
        background: linear-gradient(90deg, #eff6ff 0%, #ffffff 15%);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
    }

        .team-card.is-me:hover {
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
        }

/* Card Header - Left Side */
.team-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%);
    color: white;
    min-width: 120px;
    flex-shrink: 0;
}

.team-card.is-me .team-card-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.team-position {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100px;
}

.team-you-badge {
    font-size: 9px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Card Picks Content - Right Side */
.team-card-picks {
    display: flex;
    flex: 1;
    padding: 12px 16px;
    gap: 24px;
    align-items: center;
    min-width: 0;
}

/* Sections - MVPs and Draft Picks */
.team-picks-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .team-picks-section.mvp-section {
        padding-right: 24px;
        border-right: 1px solid #e5e7eb;
    }

    .team-picks-section.picks-section {
        flex: 1;
        min-width: 0;
    }

/* Section Headers - Inline */
.team-section-header {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

    .team-section-header svg {
        width: 14px;
        height: 14px;
        color: #94a3b8;
        flex-shrink: 0;
    }

    .team-section-header span {
        font-size: 10px;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

/* MVP Section Header Color */
.team-picks-section.mvp-section .team-section-header svg {
    color: #f59e0b;
}

.team-picks-section.mvp-section .team-section-header span {
    color: #b45309;
}

/* Picks Grid - Horizontal */
.team-picks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Individual Pick Items */
.team-pick-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.15s ease;
}

    .team-pick-item.filled {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-color: #86efac;
        color: #166534;
    }

    .team-pick-item.empty {
        background: #f8fafc;
        border-style: dashed;
        color: #cbd5e1;
        font-style: normal;
        padding: 5px 14px;
    }

    .team-pick-item.hidden {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
        border-color: #d1d5db;
        color: #6b7280;
    }

    .team-pick-item.exiled {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
        border-color: #fca5a5;
        color: #991b1b;
    }

        .team-pick-item.exiled.filled::before {
            content: '✗';
            font-size: 9px;
            margin-right: 2px;
        }

/* MVP specific styling */
.team-picks-section.mvp-section .team-pick-item.filled {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border-color: #fcd34d;
    color: #854d0e;
}

.team-picks-section.mvp-section .team-pick-item.hidden {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    color: #6b7280;
}

.team-pick-item .hidden-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #9ca3af;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
}

/* No Teams Message */
.no-teams {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

    .no-teams svg {
        width: 40px;
        height: 40px;
        color: #cbd5e1;
        margin-bottom: 12px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .no-teams p {
        margin: 0;
    }

/* ========================================
   WAITING / COMPLETE PANELS
   ======================================== */

.waiting-message {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    padding: 16px 0;
}

.complete-message {
    text-align: center;
    color: #16a34a;
    font-size: 16px;
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .draft-layout {
        grid-template-columns: 1fr 1fr;
    }

    .main-panel {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 900px) {
    .auto-pick-preview {
        flex-direction: column;
        gap: 20px;
    }

    .auto-pick-edit-layout {
        flex-direction: column;
    }

    .auto-pick-available-panel {
        width: 100%;
        max-height: 300px;
    }

    .auto-pick-slots.mvp-slots {
        flex-direction: column;
    }

    /* All Teams - Stack vertically on medium screens */
    .team-card {
        flex-direction: column;
    }

    .team-card-header {
        flex-direction: row;
        min-width: unset;
        padding: 12px 16px;
        gap: 12px;
    }

    .team-name {
        max-width: none;
        text-align: left;
    }

    .team-card-picks {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .team-picks-section.mvp-section {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
    }

    .team-picks-section {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px;
    }

        .header-row .draft-actions {
            width: 100%;
            justify-content: center;
        }

    .draft-content {
        padding: 0 12px 12px 12px;
    }

    .main-panel-sticky-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sticky-timer-section {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .sticky-timer {
        width: 100%;
    }

    .btn-pause-timer {
        width: 100%;
        justify-content: center;
    }

    .mvp-slots {
        flex-direction: column;
    }

    .draft-countdown-panel {
        padding: 12px 16px;
    }

    .countdown-text {
        font-size: 13px;
    }

    .countdown-timer {
        font-size: 16px;
    }

    .draft-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .main-panel {
        order: 0;
        max-height: none;
    }

    .users-panel {
        order: 1;
    }

    .players-panel {
        order: 2;
    }

    .my-picks-grid {
        flex-direction: column;
        gap: 16px;
    }

    .picks-slots {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .pick-slot {
        min-width: 80px;
        flex: 0 0 auto;
    }

    .current-pick-info {
        flex-direction: column;
        gap: 8px;
    }

    .panel-content {
        max-height: 300px;
    }

    .players-panel .panel-content {
        max-height: 350px;
    }

    .all-teams-grid {
        padding: 16px;
        gap: 16px;
    }

    .team-card-header {
        padding: 14px 16px;
    }

    .team-card-picks {
        padding: 16px;
    }

    .team-picks-grid {
        gap: 6px;
    }

    .team-pick-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.panel-content::-webkit-scrollbar,
.draft-log::-webkit-scrollbar,
.players-list::-webkit-scrollbar,
.auto-pick-preview-list::-webkit-scrollbar,
.auto-pick-slots.draft-order-slots::-webkit-scrollbar,
.available-players-list::-webkit-scrollbar,
.main-panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track,
.draft-log::-webkit-scrollbar-track,
.players-list::-webkit-scrollbar-track,
.auto-pick-preview-list::-webkit-scrollbar-track,
.auto-pick-slots.draft-order-slots::-webkit-scrollbar-track,
.available-players-list::-webkit-scrollbar-track,
.main-panel-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb,
.draft-log::-webkit-scrollbar-thumb,
.players-list::-webkit-scrollbar-thumb,
.auto-pick-preview-list::-webkit-scrollbar-thumb,
.auto-pick-slots.draft-order-slots::-webkit-scrollbar-thumb,
.available-players-list::-webkit-scrollbar-thumb,
.main-panel-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .panel-content::-webkit-scrollbar-thumb:hover,
    .draft-log::-webkit-scrollbar-thumb:hover,
    .players-list::-webkit-scrollbar-thumb:hover,
    .auto-pick-preview-list::-webkit-scrollbar-thumb:hover,
    .auto-pick-slots.draft-order-slots::-webkit-scrollbar-thumb:hover,
    .available-players-list::-webkit-scrollbar-thumb:hover,
    .main-panel-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
