/* assets/style.css */
/* assets/style.css - Version 1.5 */

:root {
    --primary: #1a4789;
    --secondary: #28a745;
    --bg: #f0f2f5;
    --text: #333;
    --white: #ffffff;
    --error: #f74702;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px; /* Perfect for mobile */
    padding: 20px;
    box-sizing: border-box;
}

h1 { text-align: center; color: var(--primary); }

.match-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.team { display: flex; flex-direction: column; align-items: center; width: 40%; }
.flag { font-size: 2.0rem; line-height: 1; }
.name { font-weight: bold; font-size: 0.9rem; margin-top: 5px; }
.vs { font-weight: 900; color: #ccc; }

.btn-predict {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
}

/* Global Button Style */
.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    width: 100%;
    margin-top: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.2s ease;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Floating Label Logic */
.input-group { position: relative; margin-bottom: 20px; text-align: left; }
.input-group label { 
    display: block; 
    font-size: 0.8rem; 
    color: var(--primary); 
    font-weight: bold; 
    margin-bottom: 5px; 
    margin-left: 5px;
}
.ip-warning {
    margin-top: 25px;
    font-size: 0.75rem;
    color: #d9534f;
    font-family: monospace;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}


/* assets/style.css additions */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.loader {
    font-size: 3rem;
    margin: 20px 0;
    animation: spin 2s linear infinite;
    display: inline-block;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NEW: Outcome Selection UI */
.outcome-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}


/* assets/style.css - Version 1.3 [2024-05-22] */

.outcome-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover state */
.outcome-option:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

/* SELECTED STATE - This is the visual queue */
.outcome-option.selected {
    border-color: var(--primary);
    background: #eef2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 71, 137, 0.15);
}

.outcome-option.selected .radio-circle {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 3px #fff; /* Creates a "ring" effect */
}

.outcome-option.selected span {
    color: var(--primary);
    font-weight: bold;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}


.submit-btn:disabled {
    background-color: #ccc !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Success animation when button enables */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.submit-btn:not(:disabled) {
    animation: pulse-green 2s infinite;
}

.toast-success {
    position: relative;
    z-index: 100; /* Ensure it stays above card shadows */    
    background: var(--secondary);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    transition: opacity 0.5s ease;
}

/* assets/style.css - Sticky Header Update */

/* Update this block in assets/style.css */
.sticky-user-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    /* Changed height to min-height to allow expansion for two rows */
    min-height: 60px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    /* Added flex-wrap so content can break to the next line */
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjusted padding for better vertical spacing */
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

/* Add this to ensure the welcome message stays on its own row when it wraps */
.user-info {
    flex: 1 1 100%; /* Forces the "Hi, User!" to take full width if needed */
    margin-bottom: 5px;
}

/* Ensure the buttons have enough space to wrap naturally */
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap; /* Allows buttons to wrap into a third row if needed on tiny screens */
}

.welcome-text {
    font-size: 0.85rem;
    color: #444;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.nav-btn {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 6px 12px;
    padding: 3px 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-btn {
    color: #dc3545;
    border: 1px solid #dc3545;
    background: #fff5f5;
}

.admin-btn:hover {
    background: #dc3545;
    color: white;
}

.logout-btn {
    color: #666;
    border: 1px solid #ccc;
    background: #fff;
}

.logout-btn:hover {
    background: #f5f5f5;
}

/* Ensure the title doesn't hide under the bar */
.container {
    padding-top: 10px;
}

.standings-btn {
    background: var(--secondary);
    color: white;
    border: 1px solid var(--secondary);
}

.standings-btn:hover {
    filter: brightness(1.1);
    color: white;
}


