* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-dark: #1a2f23;
    --forest-medium: #2d4a38;
    --earth-brown: #5c4033;
    --warm-tan: #c9a86a;
    --light-cream: #f4ead5;
    --accent-gold: #d4af37;
    --text-light: #f4ead5;
    --text-dark: #1a2f23;
}

body {
    font-family: 'Georgia', serif;
    background: var(--forest-dark);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('images/hero.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

header {
    position: relative;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(26,47,35,0.95) 0%, rgba(26,47,35,0.7) 100%);
    border-bottom: 3px solid var(--accent-gold);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--forest-medium);
    color: var(--text-light);
    border: 2px solid var(--earth-brown);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--earth-brown);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold);
    font-weight: bold;
}

main {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header h2 {
    font-size: 2rem;
    color: var(--warm-tan);
}

.form-card {
    background: rgba(45, 74, 56, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--earth-brown);
    margin-bottom: 2rem;
}

.form-card label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--warm-tan);
    font-weight: bold;
}

.form-card input[type="text"],
.form-card input[type="date"],
.form-card textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--forest-dark);
    border: 2px solid var(--earth-brown);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Georgia', serif;
    font-size: 1rem;
}

.form-card input[type="text"]:focus,
.form-card input[type="date"]:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--warm-tan);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: var(--forest-medium);
    color: var(--text-light);
    border: 2px solid var(--earth-brown);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--earth-brown);
}

.btn-large {
    width: 100%;
    font-size: 1.25rem;
    padding: 1rem;
    margin-top: 2rem;
}

.btn-danger {
    background: #8b3a3a;
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #a64545;
}

/* Songs List */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    background: rgba(45, 74, 56, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--earth-brown);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.song-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.song-name {
    font-size: 1.1rem;
    color: var(--text-light);
}

.song-meta {
    font-size: 0.9rem;
    color: var(--warm-tan);
    margin-top: 0.25rem;
}

/* Songs Checklist for New Rehearsal */
.songs-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.song-check-item {
    background: rgba(45, 74, 56, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--earth-brown);
}

.song-check-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.song-check-header input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.song-check-header label {
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    flex: 1;
}

.song-notes-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--forest-dark);
    border: 2px solid var(--earth-brown);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    display: none;
}

.song-check-item.checked .song-notes-input {
    display: block;
}

/* Rehearsals History */
.rehearsals-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rehearsal-item {
    background: rgba(45, 74, 56, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--earth-brown);
}

.rehearsal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--earth-brown);
}

.rehearsal-date {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: bold;
}

.rehearsal-summary {
    font-size: 0.95rem;
    color: var(--warm-tan);
}

.rehearsal-notes {
    background: var(--forest-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
    color: var(--light-cream);
}

.rehearsal-songs {
    margin-top: 1rem;
}

.rehearsal-song {
    padding: 0.75rem;
    border-left: 3px solid var(--accent-gold);
    background: rgba(26, 47, 35, 0.5);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.rehearsal-song-name {
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.rehearsal-song-notes {
    font-size: 0.9rem;
    color: var(--warm-tan);
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--warm-tan);
    font-size: 1.1rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .view-header h2 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
