/* Football Tracker Custom Styles */

/* Home page table enhancements */
.sapMListTbl .sapMText {
    font-size: 0.9rem;
}

.sapMColumnHeader .sapMText {
    font-weight: bold;
}

/* Login page styling */
.sapMPage[data-view="Login"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Match card styling */
.matchCard {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.matchCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status badges */
.statusBadge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.statusScheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.statusLive {
    background-color: #fff3e0;
    color: #f57c00;
    animation: pulse 2s infinite;
}

.statusFinished {
    background-color: #e8f5e9;
    color: #388e3c;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Team flags/badges — object-fit: contain so square club logos (e.g. UEFA
   team badges) don't get stretched inside the landscape 3:2 flag boxes */
.teamFlag {
    border: 1px solid #ddd;
    border-radius: 2px;
    object-fit: contain;
}

/* Bracket view styles */
#bracketDiv {
    font-family: "72", "72full", Arial, Helvetica, sans-serif;
}

#bracketDiv .stage-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#bracketDiv .match-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 220px;
}

/* Prediction dialog */
.sapMDialog .sapMInput {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Match score in detail dialog */
.ftDialogScore {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sapMListTbl {
        font-size: 0.85rem;
    }

    #bracketDiv {
        min-width: 800px;
    }
}

/* Icon tab bar custom styling */
.sapMITH {
    background-color: #f5f5f5;
}

.sapMITBTextOnly .sapMITBTab {
    min-width: 120px;
}

/* Loading indicator */
.sapMBusyIndicator {
    z-index: 1000;
}

/* Custom scrollbar */
.sapMScrollCont::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sapMScrollCont::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sapMScrollCont::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sapMScrollCont::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Header user info */
.sapMText.userWelcome {
    font-weight: 500;
    color: #333;
}

/* Table alternating row colors */
.sapMListTbl tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Button enhancements */
.sapMBtn.sapMBtnEmphasized {
    background-color: #0070f2;
}

.sapMBtn.sapMBtnEmphasized:hover {
    background-color: #005cbf;
}

/* Form field spacing */
.sapUiForm .sapMLabel {
    padding-bottom: 4px;
}

/* Tournament bracket specific */
.bracket-connector {
    stroke: #ccc;
    stroke-width: 2px;
    fill: none;
}

/* Success/Error messages */
.sapMMessageToast {
    font-size: 0.9rem;
}

/* Compact mode adjustments */
.sapUiSizeCompact .sapMListTbl {
    font-size: 0.875rem;
}

.sapUiSizeCompact .matchCard {
    padding: 8px;
}

