﻿/* dialog-shared.css — imported by dialog-specific .razor.css files */

/* ===== FORM FIELDS ===== */
.field-group {
    margin-bottom: 16px;
}

.field-row {
    display: flex;
    gap: 12px;
}

    .field-row .field-group {
        flex: 1;
    }

.field-label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.field-hint {
    color: #475569;
    font-size: 11px;
    margin: 4px 0 0 0;
}

.dialog-section-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

::deep .dialog-input .k-input,
::deep .dialog-input .k-picker,
::deep .dialog-input .k-textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

::deep .dialog-input .k-input,
::deep .dialog-input .k-picker {
    height: 44px !important;
}

    ::deep .dialog-input .k-input:focus,
    ::deep .dialog-input .k-input.k-focus {
        border-color: #3498db !important;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
    }

/* ===== COLOR PICKER ===== */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.color-preview {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.color-hex {
    color: #64748b;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 11px;
    flex-shrink: 0;
}

::deep .color-default-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s;
}

    ::deep .color-default-btn:hover {
        border-color: rgba(255, 255, 255, 0.25) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        transform: scale(1.1);
    }

.color-default-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PLAYER PREVIEW ===== */
.player-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 4px;
}

.preview-jersey {
    width: 44px;
    height: 52px;
    border-radius: 6px 6px 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-player-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.preview-player-position {
    color: #64748b;
    font-size: 12px;
}

/* ===== TEAM PREVIEW ===== */
.team-preview-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.team-preview-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-preview-jersey {
    width: 40px;
    height: 48px;
    border-radius: 6px 6px 3px 3px;
    border: 3px solid;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-preview-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.02);
}

.team-preview-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.team-preview-meta {
    color: #64748b;
    font-size: 12px;
}

/* ===== GAME PREVIEW ===== */
.game-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 4px;
}

.game-preview-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.game-preview-home {
    justify-content: flex-end;
}

.game-preview-visitor {
    justify-content: flex-start;
}

.game-preview-color {
    width: 8px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}

.game-preview-name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-preview-vs {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ===== GAME STATUS ===== */
.game-status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-scheduled {
    background: rgba(52,152,219,0.12);
    color: #3498db;
    border: 1px solid rgba(52,152,219,0.2);
}

.status-1st-half, .status-2nd-half {
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.2);
}

.status-halftime {
    background: rgba(243,156,18,0.12);
    color: #f39c12;
    border: 1px solid rgba(243,156,18,0.2);
}

.status-final, .status-completed {
    background: rgba(149,165,166,0.12);
    color: #95a5a6;
    border: 1px solid rgba(149,165,166,0.2);
}

/* ===== TEAM SEARCH ===== */
.team-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.team-search-colors {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.search-swatch {
    width: 12px;
    height: 20px;
    border-radius: 3px 0 0 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-swatch-secondary {
    width: 6px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-search-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.team-search-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.team-search-meta {
    color: #64748b;
    font-size: 11px;
}

.team-search-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    color: #94a3b8;
    font-size: 13px;
}

.team-search-hint {
    color: #475569;
    font-size: 11px;
    font-style: italic;
}

/* ===== DELETE CONFIRM ===== */
.delete-confirm {
    text-align: center;
    padding: 8px 0;
}

.delete-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.delete-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.delete-message {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

    .delete-message strong {
        color: #94a3b8;
    }

/* ===== RESPONSIVE ===== */
@@media (max-width: 768px) {
    .field-row {
        flex-direction: column;
        gap: 0;
    }

    .game-preview {
        flex-direction: column;
        gap: 8px;
    }

    .game-preview-home,
    .game-preview-visitor {
        justify-content: center;
    }
}
