* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
}
/* Navigation styles are in navbar partial */
.page-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}
.container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1 {
    margin-top: 0;
    color: #333;
}
.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.team-section {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafafa;
}
.team-section h2 {
    margin-top: 0;
    color: #667eea;
}
.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}
select, input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
button {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}
button:hover {
    background: #5568d3;
}
button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.loading {
    display: inline-block;
    margin-left: 0.5rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error {
    color: #e74c3c;
    background: #fee;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.success {
    color: #27ae60;
    background: #efe;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.roster-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
.roster-section h3 {
    margin-top: 0;
    color: #333;
}
.roster-box {
    margin-top: 1rem;
}
.roster-box h4 {
    margin: 0 0 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}
.player-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: visible;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    background: white;
    width: 100%;
}
.stats-header {
    display: grid;
    padding: 0.5rem;
    border-bottom: 2px solid #ddd;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}
.stats-header.pitchers {
    grid-template-columns: 180px 35px 60px 55px 55px 65px 55px 45px 45px;
    gap: 0.75rem;
}
.stats-header.batters {
    grid-template-columns: 180px 55px 45px 45px 45px 45px 45px 55px;
    gap: 0.75rem;
}
.player-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    display: grid;
    gap: 0.75rem;
    align-items: center;
}
.player-item.pitchers {
    grid-template-columns: 180px 35px 60px 55px 55px 65px 55px 45px 45px;
}
.player-item.pitchers .name,
.player-item.batters .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-item.batters {
    grid-template-columns: 180px 55px 45px 45px 45px 45px 45px 55px;
}
.player-item:last-child {
    border-bottom: none;
}
.player-item .name {
    font-weight: 600;
    color: #333;
}
.player-item .info {
    font-size: 0.9rem;
    color: #666;
}
.player-item .stat {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}
.sp-highlight {
    background: #fff3cd;
    font-weight: bold;
}
.stats-header .stat {
    text-align: right;
}
.lineup-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
.lineup-controls {
    margin-bottom: 1rem;
}
.lineup-toggle {
    display: flex;
    gap: 1rem;
}
.lineup-toggle label {
    display: inline-block;
    cursor: pointer;
}
.lineup-grid {
    display: grid;
    gap: 0.5rem;
}
.lineup-slot {
    display: grid;
    grid-template-columns: 40px 1fr 150px 120px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}
.lineup-slot .order {
    font-weight: bold;
    text-align: center;
}
.lineup-slot .player-select,
.lineup-slot .position-select {
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}
.game-settings {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #667eea;
}
.game-settings h2 {
    margin-top: 0;
    color: #667eea;
}
.create-button {
    margin-top: 2rem;
    text-align: center;
}
.create-button button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}
.hidden {
    display: none;
}
    </style>
