/* Global Variables */
:root {
    --primary-blue: #2c3e50;
    --accent-blue: #3498db;
    --primary-green: #27ae60;
    --primary-red: #e74c3c;
    --primary-yellow: #f1c40f;
    --dark-gray: #2c3e50;
    --medium-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --border-color: #dcdde1;
    --white: #ffffff;
}

/* Stadium Background */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 8px 5px;
    background: linear-gradient(135deg, #1e3799 0%, #0c2461 100%);
    background-attachment: fixed;
    color: var(--dark-gray);
    line-height: 1.2;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Baseball Watermark */
body::before {
    content: "sports_baseball";
    font-family: 'Material Symbols Outlined';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 35rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    pointer-events: none;
}

#app-content {
    max-width: 700px;
    margin: 5px auto;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f2f5;
}

.logo-icon { font-size: 2.2rem !important; color: #e74c3c; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: #0c2461; text-transform: uppercase; }
.logo-accent { color: #27ae60; }

h2 { color: var(--primary-blue); margin-top: 10px; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; font-size: 0.85rem; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }

/* Navigation */
nav { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-green); display: flex; justify-content: center; gap: 15px; }
nav a { text-decoration: none; color: #1e3799; font-weight: bold; font-size: 0.85rem; }

/* Buttons */
button { padding: 6px 12px; font-size: 0.8rem; background-color: var(--primary-green); color: var(--white); border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
button.secondary { background-color: var(--medium-gray); }
button.danger { background-color: var(--primary-red); }

/* Forms */
input, select {
    padding: 8px; font-size: 0.85rem; border: 1px solid #dcdde1; border-radius: 4px; margin-bottom: 5px; width: 100%; box-sizing: border-box;
}

.section-separator { height: 1px; background-color: #eee; margin: 12px 0 8px 0; }

/* Extreme Compact 3-Line List Layout */
.game-entry-item {
    margin-bottom: 2px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--medium-gray);
    background-color: var(--white);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-line-1 { font-size: 0.85rem; margin: 0; line-height: 1.1; font-weight: 600; color: #2d3436; }
.game-line-2 { font-size: 0.7rem; font-weight: 800; color: var(--medium-gray); line-height: 1.1; text-transform: uppercase; }
.game-line-3 { display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: wrap; }

.game-line-3 select { width: auto; min-width: 120px; margin-bottom: 0; padding: 2px; height: 26px; font-size: 0.75rem; }
.game-line-3 button { height: 26px; padding: 0 8px; font-size: 0.7rem; }

.date-group-heading {
    background-color: var(--dark-gray);
    color: white;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin: 8px 0 3px 0;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Status Colors */
.is-confirmed { border-left-color: #8b0000 !important; }
.is-confirmed .game-line-1, .is-confirmed .game-line-2 { color: #8b0000 !important; }

.is-unassigned { border-left-color: #28a745 !important; }
.is-unassigned .game-line-1, .is-unassigned .game-line-2 { color: #28a745 !important; }

.is-rescheduled { 
    border-left-color: #6f42c1 !important; 
    background-color: #f5f6fa;
    opacity: 0.5;
    text-decoration: line-through;
}
.is-rescheduled .game-line-1, .is-rescheduled .game-line-2 { color: #6f42c1 !important; }

.is-late-add { border-left-color: var(--primary-yellow) !important; }

.late-add-badge {
    background-color: var(--primary-yellow);
    color: black !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
}

.is-cancelled { opacity: 0.5; text-decoration: line-through; background-color: #f5f6fa; }

.rescheduled-badge {
    background-color: #6f42c1;
    color: white !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    display: inline-block;
    text-decoration: none !important;
}

/* Form Grids */
.manual-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 3px; }
.manual-add-grid label { font-size: 0.7rem; font-weight: bold; margin-bottom: 2px; color: #636e72; }

.edit-mode { display: none; margin-top: 8px; padding: 10px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; }
.game-entry-item.is-editing .edit-mode { display: block; }
.game-entry-item.is-editing .game-line-1, .game-entry-item.is-editing .game-line-2, .game-entry-item.is-editing .game-line-3 { display: none; }
.edit-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.hidden { display: none !important; }
