:root {
    /* Colors */
    --camp-green: #1b3b2b;
    --camp-green-dark: #142b20;
    --camp-cream: #f2f0e6;
    --camp-accent: #c4b693;
    --camp-accent-light: #d4c9a8;
    --shadow: rgba(0, 0, 0, 0.3);
    --success: #4a7c59;
    --gold: #d4af37;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 20px;
    --space-xl: 30px;
    --space-2xl: 40px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--camp-green);
    color: var(--camp-cream);
    font-family: 'Roboto Slab', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: var(--space-lg);
    padding-top: 80px; /* Account for fixed nav */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============ NAVIGATION ============ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--camp-green-dark);
    border-bottom: 2px solid var(--camp-accent);
    z-index: 1000;
    padding: 0 var(--space-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: var(--space-sm);
}

.nav-link {
    color: var(--camp-cream);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(196, 182, 147, 0.2);
}

.nav-link.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

.nav-protected {
    display: none;
}

/* J&T Collapsible Submenu */
.nav-jt-wrapper {
    position: relative;
    display: none;
}

.nav-jt-toggle {
    background: transparent;
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Roboto Slab', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-jt-toggle:hover {
    background: rgba(196, 182, 147, 0.2);
}

.nav-jt-toggle.active {
    background: rgba(196, 182, 147, 0.3);
    border-color: var(--camp-cream);
}

.nav-jt-toggle .toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-jt-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.nav-jt-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--camp-green-dark);
    border: 1px solid var(--camp-accent);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-jt-submenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-jt-submenu .nav-link {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
}

.nav-jt-submenu .nav-link:hover {
    background: rgba(196, 182, 147, 0.2);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login-btn {
    background: linear-gradient(135deg, var(--camp-cream) 0%, var(--camp-accent-light) 100%);
    color: var(--camp-green-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 6px 6px 16px;
    border-radius: 25px;
    border: 1px solid var(--camp-accent);
}

.nav-user-name {
    color: var(--camp-accent-light);
    font-size: 0.9rem;
}

.nav-logout-btn {
    background: transparent;
    border: 1px solid var(--camp-cream);
    color: var(--camp-cream);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-logout-btn:hover {
    background: var(--camp-cream);
    color: var(--camp-green-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--camp-cream);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ PAGE HEADERS ============ */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: 'Rye', serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: var(--camp-cream);
}

.page-header p {
    color: var(--camp-accent);
    margin: 0;
}

/* Homepage Hero Section */
.home-hero {
    text-align: center;
    padding: 30px 20px 20px;
    margin: 0 auto 10px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--camp-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
}

.home-hero h1 {
    font-family: 'Rye', serif;
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    color: var(--camp-cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-hero p {
    color: var(--camp-accent);
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 1px;
}

h2 {
    font-family: 'Rye', serif;
    border-bottom: 2px solid var(--camp-accent);
    display: inline-block;
    padding-bottom: 10px;
    margin: 30px 0 20px 0;
    font-size: 1.5rem;
}

h3 {
    font-family: 'Rye', serif;
    color: var(--camp-accent);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

h4 {
    font-family: 'Rye', serif;
    color: var(--camp-cream);
    margin: 0 0 15px 0;
    font-size: 1rem;
}

/* ============ BUTTONS ============ */
button, .btn {
    background-color: var(--camp-cream);
    color: var(--camp-green);
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: 'Roboto Slab', serif;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: var(--camp-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

button:active, .btn:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--camp-cream);
    color: var(--camp-cream);
}

.btn-secondary:hover {
    background: var(--camp-cream);
    color: var(--camp-green-dark);
}

.btn-add {
    background: var(--success);
    color: white;
}

/* ============ WEATHER SECTION ============ */
#weather-section {
    text-align: center;
}

.weather-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
}

.weather-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    flex: 1;
    max-width: 520px;
    box-shadow: 0 4px 20px var(--shadow);
}

.shooting-times {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-box {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--camp-accent);
}

.time-box.legal {
    background: rgba(196, 182, 147, 0.15);
    border-left: 4px solid var(--camp-cream);
}

.time-box.legal .time {
    color: var(--camp-cream);
}

.time-box .label {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.time-box .time {
    font-size: 1.6rem;
    font-weight: bold;
    font-family: 'Rye', serif;
}

.time-box .subtext {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 2px;
}

/* Weather Widget */
#weather-data {
    min-height: 200px;
}

.weather-loading {
    text-align: center;
    padding: 40px;
    color: var(--camp-accent);
    font-style: italic;
}

.weather-error {
    text-align: center;
    padding: 30px;
    color: var(--camp-accent);
}

.weather-error button {
    margin-top: 15px;
}

.weather-main {
    text-align: center;
    padding: 15px 0 20px 0;
    border-bottom: 1px solid rgba(196, 182, 147, 0.2);
    margin-bottom: 15px;
}

.weather-temp {
    font-family: 'Rye', serif;
    font-size: 3.5rem;
    color: var(--camp-cream);
    line-height: 1;
}

.weather-feels {
    color: var(--camp-accent);
    font-size: 0.9rem;
    margin-top: 5px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.weather-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--camp-cream);
    font-weight: 600;
}

.weather-rain {
    display: flex;
    justify-content: space-around;
    background: rgba(100, 150, 200, 0.1);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.rain-item {
    text-align: center;
}

.rain-label {
    display: block;
    font-size: 0.65rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rain-value {
    display: block;
    font-size: 1rem;
    color: #a0c4e8;
    font-weight: 600;
}

.weather-updated {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(196, 182, 147, 0.6);
    padding-top: 8px;
}

/* Weather Preview in Log Entry Form */
.weather-preview {
    background: rgba(100, 150, 200, 0.1);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.weather-preview h4 {
    color: var(--camp-cream);
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.weather-preview-loading {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
    padding: 20px;
}

.weather-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wp-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
}

.wp-label {
    display: block;
    font-size: 0.65rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wp-value {
    display: block;
    font-size: 0.95rem;
    color: #a0c4e8;
    font-weight: 600;
}

.weather-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(196, 182, 147, 0.5);
    margin: 12px 0 0 0;
    font-style: italic;
}

.weather-preview-error {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
}

/* ============ DUCK LIMITS SECTION ============ */
#limits-section {
    text-align: center;
    padding: 0 20px 30px 20px;
}

#limits-section h2 {
    display: inline-block;
    border-bottom: 2px solid var(--camp-accent);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.limits-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px var(--shadow);
}

.daily-limit {
    font-family: 'Rye', serif;
    font-size: 1.5rem;
    color: var(--camp-accent);
    margin-bottom: 15px;
}

.limits-note {
    font-size: 0.9rem;
    color: var(--camp-cream);
    margin-bottom: 15px;
    opacity: 0.8;
}

.species-limits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.species-limits li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--camp-accent);
}

.species-limits .species {
    font-size: 0.9rem;
    color: var(--camp-cream);
}

.species-limits .limit {
    font-weight: bold;
    color: var(--camp-accent);
    font-size: 0.9rem;
}

@media (max-width: 500px) {
    .species-limits {
        grid-template-columns: 1fr;
    }
}

/* ============ NAV DIVIDER ============ */
.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(196, 182, 147, 0.4);
    margin: 0 5px;
    display: none;
}

/* Weather in Log Cards */
.log-weather {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(100, 150, 200, 0.1);
    border-radius: 6px;
}

.log-weather-item {
    font-size: 0.8rem;
    color: #a0c4e8;
}

.log-weather-item .label {
    color: var(--camp-accent);
    margin-right: 4px;
}

@media (max-width: 480px) {
    .weather-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Optimal Conditions Display */
.optimal-conditions {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.optimal-item {
    text-align: center;
    background: rgba(74, 124, 89, 0.2);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 20px 30px;
    min-width: 150px;
}

.optimal-label {
    display: block;
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.optimal-value {
    display: block;
    font-size: 1.1rem;
    color: var(--camp-cream);
    font-weight: 600;
}

/* ============ FORMS ============ */
.form-container, form {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.small {
    flex: 0 0 100px;
}

label, .form-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--camp-accent);
    font-weight: 600;
    display: block;
}

input, select, textarea {
    background: rgba(42, 79, 59, 0.8);
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Roboto Slab', serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--camp-cream);
    box-shadow: 0 0 0 2px rgba(242, 240, 230, 0.2);
}

input::placeholder, textarea::placeholder {
    color: rgba(242, 240, 230, 0.4);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* ============ HARVEST ENTRY ============ */
.harvest-entry {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.harvest-entry h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.3);
    padding-bottom: 10px;
}

/* Harvest count inputs - Drake/Hen/Banded */
.harvest-counts {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.harvest-counts .count-group {
    flex: 1;
    text-align: center;
}

.harvest-counts .count-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--camp-accent);
    margin-bottom: 6px;
    font-weight: bold;
}

.harvest-counts .count-group input {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    padding: 12px 8px;
    font-weight: bold;
}

.harvest-counts .count-group.banded label {
    color: #d4a037;
}

.harvest-counts .count-group.banded input {
    border-color: #d4a037;
    background: rgba(212, 160, 55, 0.1);
}

.btn-add.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 1rem;
}

/* Hunter Names Section */
.hunter-names-section {
    margin: 15px 0;
}

.hunter-names-section > label {
    display: block;
    font-size: 0.9rem;
    color: var(--camp-accent);
    margin-bottom: 8px;
    font-weight: bold;
}

.hunter-name-inputs,
.hunter-names-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hunter-name-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.95rem;
}

.hunter-name-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hunter-name-input:focus {
    outline: none;
    border-color: var(--camp-accent);
}

.harvest-total .banded-total {
    margin-left: 15px;
    color: #d4a037;
}

#harvestList {
    margin: 15px 0;
    min-height: 60px;
}

.harvest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.harvest-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.band-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

.remove-harvest {
    background: rgba(200, 60, 60, 0.8);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.remove-harvest:hover {
    background: #c33;
    transform: none;
    box-shadow: none;
}

.no-harvest {
    color: var(--camp-accent);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.harvest-total {
    text-align: right;
    font-size: 1.1rem;
    padding-top: 10px;
    border-top: 1px solid rgba(196, 182, 147, 0.3);
    margin-top: 10px;
}

/* ============ LOGBOOK VIEWS ============ */
.view-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.view-tab {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-tab:hover {
    background: rgba(196, 182, 147, 0.2);
    transform: none;
    box-shadow: none;
}

.view-tab.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

/* ============ LOGBOOK TYPE TOGGLE (Hunt/Work) ============ */
.logbook-type-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    max-width: 300px;
}

.type-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--camp-muted);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.type-toggle-btn:hover {
    color: var(--camp-cream);
}

.type-toggle-btn.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

/* ============ WORK LOG STYLES ============ */
.work-log-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.work-filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.work-filter-select:focus {
    outline: none;
    border-color: var(--camp-cream);
}

.work-log-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--camp-muted);
}

.work-log-empty p {
    margin: 10px 0;
}

.work-log-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.work-log-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--camp-accent);
}

.work-log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.work-log-type {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.work-log-date {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.work-log-location {
    color: var(--camp-cream);
    font-weight: 500;
    margin-bottom: 8px;
}

.work-log-notes {
    color: var(--camp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.work-log-photos {
    margin-bottom: 12px;
}

.work-log-photos .photo-count {
    color: var(--camp-accent);
    font-size: 0.85rem;
}

.work-log-actions {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-log-edit-btn {
    color: var(--camp-accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.work-log-edit-btn:hover {
    text-decoration: underline;
}

.work-log-delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.work-log-delete-btn:hover {
    text-decoration: underline;
}

/* ============ DEER LOG STYLES ============ */
.deer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.deer-stats .stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.deer-year-section {
    margin-bottom: 30px;
}

.deer-year-header {
    color: var(--camp-accent);
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.2);
}

.deer-year-count {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--camp-muted);
}

.deer-log-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deer-log-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    border-left: 4px solid var(--camp-muted);
}

.deer-log-card.buck {
    border-left-color: #c4a432;
}

.deer-log-card.doe {
    border-left-color: #a67c52;
}

.deer-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.deer-date {
    color: var(--camp-cream);
    font-weight: 500;
}

.deer-gender {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.deer-gender.buck {
    background: rgba(196, 164, 50, 0.2);
    color: #c4a432;
}

.deer-gender.doe {
    background: rgba(166, 124, 82, 0.2);
    color: #c9a67a;
}

.deer-log-actions {
    display: flex;
    gap: 8px;
}

.deer-log-actions button {
    background: none;
    border: none;
    color: var(--camp-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.deer-log-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--camp-cream);
}

.deer-log-actions .delete-deer-log:hover {
    color: #ff6b6b;
}

.deer-log-body {
    color: var(--camp-cream);
}

.deer-hunter {
    margin-bottom: 8px;
}

.deer-hunter strong {
    color: var(--camp-accent);
}

.deer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.deer-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--camp-muted);
}

.deer-location {
    font-size: 0.9rem;
    color: var(--camp-muted);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.no-logs {
    text-align: center;
    padding: 40px 20px;
    color: var(--camp-muted);
}

.no-logs p {
    margin: 5px 0;
}

/* ============ RAIN EVENTS SECTION ============ */
.rain-events-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.rain-events-title {
    color: var(--camp-accent);
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rain-events-subtitle {
    color: var(--camp-muted);
    font-size: 0.85rem;
    margin: 0 0 20px 0;
}

.rain-events-empty {
    text-align: center;
    padding: 30px;
    color: var(--camp-muted);
}

.rain-events-empty p {
    margin: 5px 0;
}

.rain-events-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

.rain-events-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rain-events-year-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rain-events-year {
    color: var(--camp-cream);
    font-size: 1rem;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rain-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.rain-event-card {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, background 0.2s;
}

.rain-event-card:hover {
    transform: translateY(-2px);
    background: rgba(52, 152, 219, 0.25);
}

.rain-event-icon {
    color: #3498db;
    flex-shrink: 0;
}

.rain-event-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rain-event-date {
    color: var(--camp-cream);
    font-size: 0.85rem;
    font-weight: 500;
}

.rain-event-amount {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Work Types Modal (reuses category modal styles) */
.worktype-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.worktype-modal-content {
    background: var(--camp-green-dark);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    color: var(--camp-cream);
}

.worktype-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.worktype-modal-header h3 {
    margin: 0;
    color: var(--camp-accent);
    font-size: 1.2rem;
}

.worktype-modal-close {
    background: none;
    border: none;
    color: var(--camp-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.worktype-modal-close:hover {
    color: var(--camp-cream);
}

.worktype-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.worktype-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
}

.worktype-name {
    font-size: 0.95rem;
}

.worktype-delete-btn {
    background: none;
    border: none;
    color: var(--camp-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.worktype-delete-btn:hover {
    color: #ff6b6b;
}

.worktype-add-form {
    display: flex;
    gap: 10px;
}

.worktype-add-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--camp-accent);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--camp-cream);
    font-size: 0.95rem;
}

.worktype-add-form input::placeholder {
    color: var(--camp-muted);
}

.worktype-add-form input:focus {
    outline: none;
    border-color: var(--camp-cream);
}

.worktype-add-form .btn {
    padding: 10px 20px;
}

.worktype-hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--camp-muted);
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .work-log-grid {
        grid-template-columns: 1fr;
    }

    .work-log-filters {
        flex-direction: column;
        gap: 10px;
    }

    .work-filter-select {
        width: 100%;
        max-width: 250px;
    }
}

.view-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.season-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.season-header .view-title {
    margin: 0;
    min-width: 180px;
}

.season-header .cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============ STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-card.banded {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.stat-value {
    display: block;
    font-family: 'Rye', serif;
    font-size: 2.5rem;
    color: var(--camp-cream);
    line-height: 1;
}

.stat-card.banded .stat-value {
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ============ CHARTS ============ */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--camp-accent);
    border-radius: 10px;
    padding: 20px;
}

.chart-card.full-width {
    width: 100%;
}

.chart-card h4 {
    margin: 0 0 15px 0;
    color: var(--camp-accent);
}

.chart-subtitle {
    font-size: 0.75rem;
    color: #888;
    margin: -10px 0 12px 0;
}

.charts-row.single {
    display: block;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.bar-label {
    width: 120px;
    font-size: 0.85rem;
    color: var(--camp-accent);
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar {
    height: 24px;
    background: linear-gradient(90deg, var(--camp-accent) 0%, var(--camp-cream) 100%);
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.5s ease;
}

.bar.blind-bar {
    background: linear-gradient(90deg, var(--success) 0%, #6db380 100%);
}

.bar-value {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 30px;
}

.no-data {
    color: var(--camp-accent);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ============ CALENDAR ============ */
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.calendar-header h3 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.cal-nav {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.cal-nav:hover {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    transform: none;
    box-shadow: none;
}

.calendar-grid {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--camp-accent);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.cal-weekdays span {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    padding: 8px;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cal-day:hover:not(.empty) {
    background: rgba(196, 182, 147, 0.2);
}

.cal-day.empty {
    cursor: default;
    background: transparent;
}

.cal-day.has-hunt {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
}

.cal-day.has-birds {
    background: rgba(74, 124, 89, 0.5);
}

.day-num {
    font-size: 0.9rem;
}

.bird-count {
    font-size: 0.7rem;
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

/* Day Details */
.day-details {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--camp-accent);
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
}

.select-day-msg, .no-hunts {
    color: var(--camp-accent);
    font-style: italic;
    text-align: center;
}

/* ============ LOG CARDS ============ */
.log-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.log-date {
    font-size: 0.85rem;
    color: var(--camp-accent);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.15);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.2);
    flex-wrap: wrap;
    gap: 8px;
}

.log-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.log-time {
    font-weight: bold;
    color: var(--camp-cream);
}

.log-separator {
    color: rgba(196, 182, 147, 0.5);
    font-weight: bold;
}

.log-blind {
    color: var(--camp-accent);
    font-size: 0.95rem;
}

.log-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--camp-accent);
    margin-bottom: 12px;
}

.log-hunters {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.log-hunters .label {
    color: var(--camp-accent);
    font-weight: bold;
    margin-right: 5px;
}

.log-harvest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.harvest-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.harvest-badge.banded {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
}

.harvest-badge.lost-birds {
    background: rgba(180, 100, 100, 0.2);
    border: 1px solid #b46464;
    color: #d48888;
}

.log-total {
    font-size: 0.9rem;
    padding-top: 10px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.banded-count {
    color: var(--gold);
    margin-left: 8px;
}

.lost-count {
    color: #d48888;
    margin-left: 8px;
}

.log-notes {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--camp-accent);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(196, 182, 147, 0.1);
}

.log-notes .label {
    font-style: normal;
    font-weight: 500;
}

.stat-card.lost {
    border-color: #b46464;
}

.stat-card.lost .stat-value {
    color: #d48888;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--camp-accent);
    margin: -5px 0 8px 0;
}

.recent-hunts, .best-hunt {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

/* Blind Conditions Grid */
.blind-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.blind-condition-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.blind-condition-card h5 {
    margin: 0 0 10px 0;
    color: var(--camp-accent);
    font-size: 1.1rem;
}

.blind-stats {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blind-avg {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--camp-cream);
}

.blind-hunts {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
}

.blind-optimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.blind-opt-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.blind-opt-item .label {
    color: var(--camp-accent);
    font-weight: bold;
}

/* ============ MOV WARNING ============ */
.mov-warning {
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid #e67e22;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #f5d0a9;
    position: relative;
    line-height: 1.5;
}

.mov-warning strong {
    color: #e67e22;
}

.dismiss-warning {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #e67e22;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.dismiss-warning:hover {
    color: #f5d0a9;
    background: none;
    transform: none;
    box-shadow: none;
}

.file-item.mov-file {
    border-color: #e67e22;
}

.mov-badge {
    display: inline-block;
    background: #e67e22;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: bold;
    vertical-align: middle;
}

.file-item.dup-file {
    border-color: #e74c3c;
    opacity: 0.7;
}

.dup-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: bold;
    vertical-align: middle;
}

.duplicate-warning {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ============ FILE PROCESSING STATUS BADGES ============ */
.status-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: bold;
    vertical-align: middle;
}

.status-badge.pending {
    background: #95a5a6;
    color: white;
}

.status-badge.processing {
    background: #3498db;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-badge.ready {
    background: #27ae60;
    color: white;
}

.status-badge.error {
    background: #e74c3c;
    color: white;
}

.file-item.error-file {
    border-color: #e74c3c;
    opacity: 0.7;
}

.processing-info {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
    color: #3498db;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Upload button disabled state */
#uploadBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============ GALLERY LOADING INDICATOR ============ */
.load-more-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: var(--camp-accent);
    font-size: 0.9rem;
}

.load-more-indicator .loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(196, 182, 147, 0.3);
    border-top-color: var(--camp-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ GALLERY ============ */

/* Gallery Filter Tabs */
.gallery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: var(--camp-accent);
    border-color: var(--camp-accent);
    color: #fff;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin: 20px 0;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--camp-accent);
    background: rgba(139, 169, 139, 0.1);
}

.drop-zone.drag-over {
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-content p {
    margin: 10px 0 5px;
    color: rgba(255, 255, 255, 0.8);
}

.drop-zone-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Selected Files Preview */
.selected-files {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.selected-files h4 {
    margin: 0 0 15px 0;
    color: var(--camp-accent);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item .file-size {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.file-item .remove-file:hover {
    color: #e74c3c;
}

.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Upload Progress */
.upload-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--camp-accent), var(--camp-cream));
    width: 0%;
    transition: width 0.3s;
}

/* Upload Metadata */
.upload-metadata {
    margin-bottom: 15px;
}

.drive-option {
    margin-top: 20px;
    text-align: center;
}

/* Category & Hunt Badge on Photos */
.photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.photo-badge.work {
    background: rgba(230, 126, 34, 0.9);
}

.photo-badge.hunt {
    background: rgba(39, 174, 96, 0.9);
}

.hunt-link-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-link-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(155, 89, 182, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--camp-accent);
    border-radius: 8px;
    padding: 60px 30px;
    color: var(--camp-accent);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Photos without reliable EXIF date (using file modified or upload date) */
.gallery-item.date-warning {
    outline: 3px solid #f59e0b;
    outline-offset: -3px;
}

.gallery-item.date-warning::after {
    content: '⚠';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #f59e0b;
    color: #1a1a1a;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 5;
    opacity: 0.9;
}

.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    pointer-events: none;
}

/* Photo Actions Container */
.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .photo-actions {
    opacity: 1;
}

.edit-photo,
.delete-photo {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.edit-photo:hover {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    transform: none;
    box-shadow: none;
}

.delete-photo {
    background: rgba(200, 60, 60, 0.9);
}

.delete-photo:hover {
    background: #c33;
    transform: none;
    box-shadow: none;
}

/* Upload Options */
.upload-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.upload-local {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.upload-divider {
    color: var(--camp-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    width: 100%;
    text-align: center;
    margin: 5px 0;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(196, 182, 147, 0.3);
}

.upload-divider::before {
    left: 0;
}

.upload-divider::after {
    right: 0;
}

.drive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
}

.drive-btn svg {
    flex-shrink: 0;
}

/* Upload Status */
.upload-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.upload-status.success {
    background: rgba(74, 124, 89, 0.3);
    color: #8fd4a4;
}

.upload-status.error {
    background: rgba(200, 60, 60, 0.3);
    color: #ff9999;
}

.upload-status.info {
    background: rgba(100, 150, 200, 0.3);
    color: #a0c4e8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-media {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
}

.lightbox-close:hover {
    color: var(--camp-accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Photo Edit Modal */
.edit-modal .photo-preview {
    margin-bottom: 20px;
    text-align: center;
}

.edit-modal .edit-preview-media {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(196, 182, 147, 0.3);
}

.edit-modal .form-group {
    margin-bottom: 15px;
}

.edit-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--camp-accent);
}

.edit-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--camp-accent);
    border-radius: 6px;
    background: var(--camp-green-dark);
    color: var(--camp-cream);
    font-family: inherit;
    font-size: 0.95rem;
}

/* ============ PAGE LOADING STATE ============ */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--camp-accent);
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(196, 182, 147, 0.3);
    border-top-color: var(--camp-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loading p {
    margin: 0;
    font-style: italic;
}

/* Hide content until auth is ready */
.auth-pending {
    display: none !important;
}

/* ============ PROTECTED CONTENT ============ */
.protected-content {
    display: none;
}

.protected-content.visible {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Upload section centering */
#upload-section {
    text-align: center;
}

#upload-section .form-container {
    text-align: left;
}

/* Admin tools section centering */
#admin-tools {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#admin-tools h2,
#admin-tools > p {
    text-align: center;
}

.admin-tool-buttons {
    justify-content: center;
}

/* Photo Stats Display */
.photo-stats {
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    min-width: 80px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--camp-cream);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    margin-top: 4px;
}

.stat-item.stat-good {
    border-color: var(--success);
}

.stat-item.stat-good .stat-value {
    color: #6db380;
}

.stat-item.stat-warning {
    border-color: #c90;
}

.stat-item.stat-warning .stat-value {
    color: #fc0;
}

.stats-hint {
    font-size: 0.85rem;
    color: var(--camp-accent);
    font-style: italic;
}

.stats-hint.stats-good {
    color: #6db380;
}

.stats-error {
    color: #f66;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Access Denied */
.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.access-denied h2 {
    color: #c33;
}

.access-denied a {
    color: var(--camp-accent);
}

/* ============ ADD LOG BUTTON ============ */
.add-log-header-btn {
    margin-top: 15px;
    background: var(--success);
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--shadow);
}

.add-log-header-btn:hover {
    background: #5a9469;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.add-log-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 100;
}

.add-log-btn:hover {
    transform: scale(1.1);
    background: #5a9469;
}

/* ============ DIVIDERS ============ */
hr {
    border: 0;
    border-top: 1px solid rgba(196, 182, 147, 0.25);
    margin: 40px auto;
    width: 60%;
    max-width: 400px;
}

/* ============ FOOTER ============ */
footer {
    background: var(--camp-green-dark);
    border-top: 2px solid var(--camp-accent);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* ============ MOBILE RESPONSIVENESS ============ */
@media (max-width: 768px) {
    main {
        padding-top: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--camp-green-dark);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 2px solid var(--camp-accent);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
        padding: 15px;
    }

    /* J&T submenu on mobile */
    .nav-jt-wrapper {
        width: 100%;
    }

    .nav-jt-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-jt-submenu {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 5px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .nav-jt-submenu.open {
        max-height: 200px;
        transform: none;
    }

    .nav-jt-submenu .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Show auth button on mobile - position it in the nav bar */
    .nav-auth {
        display: flex;
        margin-left: auto;
        margin-right: 10px;
    }

    .nav-auth .nav-login-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .nav-auth .nav-user-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }

    .nav-auth .nav-user-name {
        font-size: 0.75rem;
    }

    .nav-auth .nav-logout-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .weather-card {
        min-width: 100%;
        max-width: 100%;
    }

    #ambient-widget-placeholder iframe {
        height: 350px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-container, form {
        margin: 0 10px;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 2rem;
    }

    .bar-label {
        width: 80px;
        font-size: 0.75rem;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .view-tabs {
        flex-wrap: wrap;
    }

    .view-tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .add-log-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        height: 40px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .time-box .time {
        font-size: 1.3rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .cal-weekdays span {
        font-size: 0.65rem;
    }

    .day-num {
        font-size: 0.8rem;
    }

    .bird-count {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* ============ ACCESSIBILITY ============ */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--camp-cream);
    outline-offset: 2px;
}

/* ============ ADMIN PANEL ============ */
.nav-admin {
    display: none;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    margin-bottom: 20px;
}

.add-user-form {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
}

.admin-status {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.admin-status.success {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
    color: #8fd4a4;
}

.admin-status.error {
    background: rgba(200, 60, 60, 0.3);
    border: 1px solid #c33;
    color: #ff9999;
}

/* User List */
#userList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: bold;
    color: var(--camp-cream);
}

.user-email {
    font-size: 0.85rem;
    color: var(--camp-accent);
}

.user-role {
    flex: 0 0 140px;
}

.role-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.user-actions {
    flex: 0 0 40px;
}

.btn-delete {
    background: rgba(200, 60, 60, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-delete:hover {
    background: #c33;
    transform: none;
    box-shadow: none;
}

/* Role Legend */
.role-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legend-role {
    flex: 0 0 80px;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.legend-role.admin {
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.legend-role.editor {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
    color: #8fd4a4;
}

.legend-role.viewer {
    background: rgba(196, 182, 147, 0.2);
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
}

.legend-role.jt-member {
    background: rgba(91, 127, 163, 0.3);
    border: 1px solid #5b7fa3;
    color: #8bb8e0;
}

.legend-desc {
    font-size: 0.9rem;
    color: var(--camp-cream);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(196, 182, 147, 0.3);
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: var(--camp-accent);
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--camp-cream);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-desc {
    color: var(--camp-accent);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Role Cards */
#rolesList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-card {
    display: flex;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.role-color-bar {
    width: 6px;
    flex-shrink: 0;
}

.role-info {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-name {
    font-weight: bold;
    color: var(--camp-cream);
    font-size: 1.1rem;
}

.role-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.role-badge.system {
    background: rgba(196, 182, 147, 0.2);
    color: var(--camp-accent);
}

.role-description {
    font-size: 0.9rem;
    color: var(--camp-accent);
}

.role-stats {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.role-stat {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.role-actions {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.btn-edit-role {
    background: rgba(196, 182, 147, 0.2);
    color: var(--camp-accent);
    border: 1px solid rgba(196, 182, 147, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-edit-role:hover {
    background: rgba(196, 182, 147, 0.3);
    color: var(--camp-cream);
}

/* Init Roles Box */
.init-roles-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.init-roles-box h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.init-roles-box p {
    color: var(--camp-accent);
    margin-bottom: 20px;
}

/* Role Modal */
.role-modal {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Permissions Container */
.permissions-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.permission-category {
    margin-bottom: 20px;
}

.permission-category:last-child {
    margin-bottom: 0;
}

.permission-category-title {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.2);
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.permission-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.permission-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.permission-checkbox span {
    font-size: 0.85rem;
    color: var(--camp-cream);
}

/* Modal Buttons */
.btn-danger {
    background: rgba(200, 60, 60, 0.8);
    border-color: #c33;
}

.btn-danger:hover {
    background: #c33;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

/* Mobile Admin */
@media (max-width: 768px) {
    .user-card {
        flex-wrap: wrap;
    }

    .user-info {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .user-role {
        flex: 1;
    }

    .user-actions {
        flex: 0;
    }

    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        flex: 1;
        text-align: center;
    }

    .role-card {
        flex-wrap: wrap;
    }

    .role-info {
        flex: 1 1 calc(100% - 6px);
    }

    .role-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        padding: 10px 15px;
        border-top: 1px solid rgba(196, 182, 147, 0.1);
    }

    .permission-list {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============ GALLERY VIEW TOGGLE ============ */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.view-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.view-btn:hover {
    background: rgba(196, 182, 147, 0.2);
    color: var(--camp-cream);
    transform: none;
    box-shadow: none;
}

.view-btn.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

.view-btn svg {
    width: 20px;
    height: 20px;
}

/* ============ GALLERY CONTROLS ============ */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    min-height: 44px;
}

.select-mode-btn {
    position: absolute;
    right: 0;
    top: 0;
    /* Match view-btn styling exactly */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    /* Center text vertically */
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-mode-btn:hover {
    background: rgba(196, 182, 147, 0.2);
    color: var(--camp-cream);
}

.select-mode-btn.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

/* ============ BULK ACTION BAR ============ */
.bulk-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--camp-accent);
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.selected-count {
    font-weight: bold;
    color: var(--camp-accent);
    font-size: 0.95rem;
    min-width: 90px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.bulk-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: #b33;
    border-color: #c44;
    color: white;
}

.btn-danger:hover {
    background: #c44;
}

/* ============ SELECT MODE GALLERY ============ */
#gallery-grid.select-mode .gallery-item {
    cursor: pointer;
    position: relative;
}

#gallery-grid.select-mode .gallery-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 0.2s;
}

#gallery-grid.select-mode .gallery-item.selected::before {
    background: var(--camp-accent);
    border-color: var(--camp-accent);
}

#gallery-grid.select-mode .gallery-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 14px;
    color: var(--camp-green-dark);
    font-size: 14px;
    font-weight: bold;
    z-index: 11;
}

#gallery-grid.select-mode .gallery-item.selected {
    outline: 3px solid var(--camp-accent);
    outline-offset: -3px;
}

#gallery-grid.select-mode .gallery-item:hover {
    opacity: 0.9;
}

/* Hide edit/delete buttons in select mode */
#gallery-grid.select-mode .photo-actions {
    display: none;
}

/* Mobile bulk actions */
@media (max-width: 768px) {
    .bulk-action-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .bulk-actions {
        justify-content: center;
    }

    .bulk-actions .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ============ ADMIN TOOLS ============ */
.admin-tool-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-tool-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============ MASONRY VIEW ============ */
#gallery-grid.masonry-view {
    display: block;
    columns: 4;
    column-gap: 8px;
}

#gallery-grid.masonry-view .gallery-item {
    break-inside: avoid;
    margin-bottom: 8px;
    aspect-ratio: unset;
    display: block;
    height: auto;
}

#gallery-grid.masonry-view .gallery-media {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
}

/* Fade in animation */
.fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ CAROUSEL VIEW ============ */
#gallery-grid.carousel-view {
    display: block;
    grid-template-columns: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--camp-accent);
    color: var(--camp-cream);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-arrow:hover {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(196, 182, 147, 0.3);
    border: 1px solid var(--camp-accent);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.carousel-dot:hover {
    background: rgba(196, 182, 147, 0.5);
    transform: none;
    box-shadow: none;
}

.carousel-dot.active {
    background: var(--camp-accent);
    transform: scale(1.2);
}

.carousel-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--camp-accent);
    font-size: 0.9rem;
}

/* ============ TIMELINE VIEW ============ */
#gallery-grid.timeline-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.timeline-group {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--camp-accent);
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.timeline-date {
    color: var(--camp-accent);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    flex-shrink: 0;
    text-align: center;
}

.timeline-photos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding: 0 10px 0 5px;
}

/* Custom scrollbar for timeline photos */
.timeline-photos::-webkit-scrollbar {
    width: 6px;
}

.timeline-photos::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.timeline-photos::-webkit-scrollbar-thumb {
    background: var(--camp-accent);
    border-radius: 3px;
}

.timeline-photos::-webkit-scrollbar-thumb:hover {
    background: var(--camp-cream);
}

.timeline-photos .gallery-item {
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.timeline-photos .gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ============ FULLSCREEN SLIDESHOW ============ */
.fullscreen-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 10;
}

.slideshow-counter {
    color: white;
    font-size: 1rem;
}

.slideshow-controls {
    display: flex;
    gap: 15px;
}

.slideshow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
    box-shadow: none;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.slideshow-arrow.prev {
    left: 30px;
}

.slideshow-arrow.next {
    right: 30px;
}

.slideshow-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    box-shadow: none;
}

.slideshow-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 120px;
}

.slideshow-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============ GALLERY RESPONSIVE ============ */
@media (max-width: 1200px) {
    #gallery-grid.masonry-view {
        columns: 3;
        column-gap: 6px;
    }

    #gallery-grid.masonry-view .gallery-item {
        margin-bottom: 6px;
    }
}

@media (max-width: 768px) {
    #gallery-grid.masonry-view {
        columns: 2;
        column-gap: 5px;
    }

    #gallery-grid.masonry-view .gallery-item {
        margin-bottom: 5px;
    }

    .carousel-track {
        height: 350px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slideshow-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .slideshow-arrow.prev {
        left: 10px;
    }

    .slideshow-arrow.next {
        right: 10px;
    }

    .slideshow-media-container {
        padding: 70px 60px;
    }

    /* Timeline responsive - tablet: 2 columns */
    #gallery-grid.timeline-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-group {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    #gallery-grid.masonry-view {
        columns: 2;
        column-gap: 4px;
    }

    #gallery-grid.masonry-view .gallery-item {
        margin-bottom: 4px;
    }

    .carousel-track {
        height: 280px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .view-btn {
        width: 40px;
        height: 40px;
    }

    .slideshow-media-container {
        padding: 60px 20px;
    }

    /* Timeline responsive - mobile: 1 column */
    #gallery-grid.timeline-view {
        grid-template-columns: 1fr;
    }

    .timeline-group {
        max-height: 400px;
    }
}

/* ============ ADMIN LOG CONTROLS ============ */
.log-admin-controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-edit-log,
.btn-delete-log {
    padding: 4px 10px;
    font-size: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.btn-edit-log {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

.btn-edit-log:hover {
    background: var(--camp-accent-light);
}

.btn-delete-log {
    background: #8b3a3a;
    color: white;
}

.btn-delete-log:hover {
    background: #a04545;
}

/* ============ EDIT MODAL ============ */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.edit-modal {
    background: var(--camp-green);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.edit-modal.edit-modal-wide {
    max-width: 500px;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--camp-accent);
}

.edit-modal-header h3 {
    margin: 0;
    font-family: 'Rye', cursive;
    color: var(--camp-accent);
}

.edit-modal-close {
    background: none;
    border: none;
    color: var(--camp-cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.edit-modal-close:hover {
    color: var(--camp-accent);
}

.edit-modal form {
    padding: 20px;
}

.edit-modal h4 {
    margin: 10px 0;
    color: var(--camp-accent);
}

.edit-modal hr {
    border: none;
    border-top: 1px solid rgba(196, 182, 147, 0.3);
    margin: 20px 0;
}

.edit-modal .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.edit-modal .form-group {
    flex: 1;
    min-width: 120px;
}

.edit-modal .form-group.small {
    flex: 0 0 80px;
    min-width: 80px;
}

.edit-modal label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--camp-accent);
}

.edit-modal input,
.edit-modal select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--camp-accent);
    border-radius: 4px;
    background: var(--camp-green-dark);
    color: var(--camp-cream);
    font-family: inherit;
}

.edit-modal .add-harvest-row {
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.edit-modal .add-harvest-row .form-group {
    min-width: 100px;
}

.edit-modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.edit-modal .checkbox-group input {
    width: auto;
}

.edit-modal .checkbox-group label {
    margin: 0;
}

.edit-modal #editHarvestList {
    margin: 15px 0;
}

.edit-modal .harvest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 8px;
}

.edit-modal .harvest-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-modal .band-icon {
    color: var(--gold);
}

.edit-modal .remove-harvest {
    background: #8b3a3a;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.edit-modal .remove-harvest:hover {
    background: #a04545;
}

.edit-modal .no-harvest {
    color: rgba(242, 240, 230, 0.5);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 182, 147, 0.3);
    margin-top: 20px;
}

.edit-modal-footer .btn {
    padding: 10px 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .edit-modal .form-row {
        flex-direction: column;
    }

    .edit-modal .form-group,
    .edit-modal .form-group.small {
        min-width: 100%;
    }

    .edit-modal .add-harvest-row {
        flex-wrap: wrap;
    }

    .log-admin-controls {
        flex-wrap: wrap;
    }
}

/* ============ CALENDAR PAGE ============ */

/* Forecast Banner */
.forecast-banner {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.forecast-loading {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
    padding: 20px;
}

.forecast-days {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.forecast-day {
    flex: 0 0 auto;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    cursor: default;
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.forecast-day.optimal {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
}

.forecast-day-name {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.forecast-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
}

.forecast-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.forecast-temp {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--camp-cream);
    margin-bottom: 4px;
}

.forecast-wind {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.forecast-desc {
    font-size: 0.7rem;
    color: var(--camp-accent);
    margin-top: 6px;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forecast-optimal-star {
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--gold);
    font-size: 1rem;
}

/* Calendar Header with Create Button */
.calendar-header #createEventBtn {
    margin-left: auto;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--camp-cream);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.workday {
    background: #e67e22;
}

.legend-dot.hunt {
    background: var(--success);
}

.legend-star {
    color: var(--gold);
    font-size: 1rem;
}

/* Calendar Grid - Enhanced for Events */
.calendar-grid .cal-days {
    gap: 8px;
}

.calendar-grid .cal-day {
    min-height: 80px;
    aspect-ratio: unset;
    padding: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
}

.calendar-grid .cal-day.selected {
    background: rgba(196, 182, 147, 0.3);
    border: 2px solid var(--camp-accent);
}

.calendar-grid .cal-day.today {
    border: 2px solid var(--camp-cream);
}

.calendar-grid .day-num {
    font-weight: bold;
    margin-bottom: 4px;
}

.calendar-grid .cal-day.optimal .day-num::after {
    content: '★';
    color: var(--gold);
    margin-left: 4px;
    font-size: 0.8rem;
}

/* ============ HUNT PERIODS - MORNING/AFTERNOON SPLIT ============ */

/* Hunt periods container in day cell */
.hunt-periods {
    display: flex;
    gap: 3px;
    width: 100%;
    margin-top: 4px;
    flex: 1;
}

/* Individual period in day cell */
.hunt-periods .period {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 2px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.6rem;
    min-width: 0;
}

.hunt-periods .period.optimal {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
}

.hunt-periods .period-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1;
}

.hunt-periods .period-temp {
    font-weight: bold;
    color: var(--camp-cream);
    font-size: 0.65rem;
}

.hunt-periods .period-wind {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Simple day forecast fallback */
.day-forecast-simple {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Event dots at bottom */
.event-dots {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.event-dot.workday {
    background: #e67e22;
}

.event-dot.hunt {
    background: var(--success);
}

/* ============ DAY PANEL - DETAILED PERIOD VIEW ============ */

/* Sun times display */
.sun-times {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.sun-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--camp-cream);
}

.sun-icon {
    font-size: 1.1rem;
}

/* Hunt period cards in day panel */
.hunt-period-card {
    background: rgba(100, 150, 200, 0.1);
    border: 1px solid rgba(100, 150, 200, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.hunt-period-card.optimal {
    background: rgba(74, 124, 89, 0.15);
    border-color: var(--success);
}

.hunt-period-card .period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hunt-period-card .period-label {
    font-weight: bold;
    color: var(--camp-cream);
    font-size: 0.95rem;
}

.hunt-period-card .period-score {
    font-size: 0.75rem;
    color: var(--camp-accent);
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
}

.hunt-period-card.optimal .period-score {
    background: rgba(74, 124, 89, 0.4);
    color: #6db380;
}

.hunt-period-card .period-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hunt-period-card .period-main {
    text-align: center;
    min-width: 70px;
}

.hunt-period-card .period-temp-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--camp-cream);
    display: block;
    line-height: 1.1;
}

.hunt-period-card .period-range {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.hunt-period-card .period-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.hunt-period-card .period-info span {
    line-height: 1.3;
}

/* Hunt recommendation */
.hunt-recommendation {
    margin-top: 15px;
    padding: 10px;
    background: rgba(196, 182, 147, 0.1);
    border: 1px solid var(--camp-accent);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--camp-cream);
}

.hunt-recommendation strong {
    color: var(--camp-accent);
}

/* Responsive adjustments for hunt periods */
@media (max-width: 768px) {
    .hunt-periods .period {
        padding: 2px 1px;
    }

    .hunt-periods .period-wind {
        display: none;
    }

    .hunt-period-card .period-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .hunt-period-card .period-main {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .hunt-period-card .period-temp-large {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hunt-periods .period-icon {
        display: none;
    }

    .hunt-periods .period-temp {
        font-size: 0.6rem;
    }

    .sun-times {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* Event Indicators on Calendar */
.day-events-indicators {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: 4px;
}

.event-indicator {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.event-indicator.workday {
    background: #e67e22;
}

.event-indicator.hunt {
    background: var(--success);
}

/* Day Events Panel */
.day-events {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--camp-accent);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.day-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(196, 182, 147, 0.3);
}

.day-events-header h3 {
    margin: 0;
}

.close-day-events {
    background: transparent;
    border: none;
    color: var(--camp-cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.close-day-events:hover {
    color: var(--camp-accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.day-events-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Event Cards */
.event-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--camp-accent);
}

.event-card.workday {
    border-left-color: #e67e22;
}

.event-card.hunt {
    border-left-color: var(--success);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-type-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.event-type-badge.workday {
    background: rgba(230, 126, 34, 0.3);
    color: #e67e22;
}

.event-type-badge.hunt {
    background: rgba(74, 124, 89, 0.3);
    color: #6db380;
}

.event-time-slot {
    font-size: 0.85rem;
    color: var(--camp-accent);
}

.event-description {
    color: var(--camp-cream);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-users {
    margin-bottom: 10px;
}

.event-users-label {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.event-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-user-chip {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--camp-cream);
}

.event-user-chip.accepted {
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--success);
}

.event-user-chip.declined {
    background: rgba(200, 60, 60, 0.2);
    border: 1px solid rgba(200, 60, 60, 0.5);
    opacity: 0.7;
}

.event-user-chip.pending {
    background: rgba(196, 182, 147, 0.2);
    border: 1px solid var(--camp-accent);
}

/* Blind Assignments */
.event-blinds {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.blind-assignment {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
}

.blind-name {
    font-weight: bold;
    color: var(--camp-accent);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.blind-hunters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* RSVP Buttons */
.event-rsvp {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.rsvp-status {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.rsvp-status.pending {
    color: var(--camp-accent);
}

.rsvp-status.accepted {
    color: #6db380;
}

.rsvp-status.declined {
    color: #c33;
}

.rsvp-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: var(--success);
    color: white;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-accept:hover {
    background: #5a9469;
}

.btn-decline {
    background: transparent;
    border: 1px solid rgba(200, 60, 60, 0.5);
    color: #ff9999;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-decline:hover {
    background: rgba(200, 60, 60, 0.2);
    border-color: #c33;
}

/* Event Card Actions */
.event-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.btn-edit-event,
.btn-delete-event {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-delete-event {
    background: rgba(200, 60, 60, 0.6);
    color: white;
}

.btn-delete-event:hover {
    background: #c33;
}

/* No Events Message */
.no-events-msg {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
    padding: 30px;
}

/* ============ EVENT MODAL ============ */
.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.event-modal-overlay.active {
    display: flex;
}

.event-modal {
    background: var(--camp-green);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--camp-accent);
}

.event-modal-header h3 {
    margin: 0;
    font-family: 'Rye', serif;
    color: var(--camp-accent);
}

.event-modal-close {
    background: none;
    border: none;
    color: var(--camp-cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.event-modal-close:hover {
    color: var(--camp-accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.event-modal form {
    padding: 20px;
    border: none;
    background: transparent;
    max-width: none;
    margin: 0;
    box-shadow: none;
}

/* Event Type Toggle */
.event-type-toggle {
    display: flex;
    gap: 10px;
}

.type-btn {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.3);
    color: var(--camp-cream);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.type-btn:hover {
    background: rgba(196, 182, 147, 0.15);
    transform: none;
    box-shadow: none;
}

.type-btn.active {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    border-color: var(--camp-accent);
}

/* User Select List */
.user-select-list {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.3);
    border-radius: 8px;
    padding: 12px;
    max-height: 180px;
    min-height: 60px;
    overflow-y: auto;
}

.user-select-list .no-users {
    color: var(--camp-accent);
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 10px;
}

.user-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.user-checkbox-name {
    color: var(--camp-cream);
    font-size: 0.9rem;
}

.user-checkbox-email {
    color: var(--camp-accent);
    font-size: 0.75rem;
    margin-left: auto;
}

/* Blind Assignments in Modal */
.blind-assignments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blind-assignment-row {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.blind-assignment-header {
    font-weight: bold;
    color: var(--camp-accent);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.blind-user-select {
    width: 100%;
    min-height: 80px;
}

.blind-user-select option {
    padding: 6px;
}

/* Event Modal Footer */
.event-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 182, 147, 0.3);
    margin-top: 20px;
}

.btn-danger {
    background: rgba(200, 60, 60, 0.8);
    color: white;
}

.btn-danger:hover {
    background: #c33;
}

/* ============ CALENDAR RESPONSIVE ============ */
@media (max-width: 768px) {
    .forecast-days {
        gap: 8px;
    }

    .forecast-day {
        min-width: 85px;
        padding: 10px 8px;
    }

    .forecast-temp {
        font-size: 1.1rem;
    }

    .calendar-grid .cal-day {
        min-height: 60px;
        padding: 6px;
    }

    .event-indicator {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .calendar-legend {
        gap: 12px;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    .event-card {
        padding: 12px;
    }

    .event-type-toggle {
        flex-direction: column;
    }

    .rsvp-buttons {
        flex-direction: column;
    }

    .btn-accept,
    .btn-decline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .forecast-day {
        min-width: 75px;
        padding: 8px 6px;
    }

    .forecast-day-name {
        font-size: 0.65rem;
    }

    .forecast-temp {
        font-size: 1rem;
    }

    .forecast-wind {
        font-size: 0.65rem;
    }

    .forecast-desc {
        display: none;
    }

    .calendar-grid .cal-day {
        min-height: 50px;
        padding: 4px;
    }

    .day-events-indicators {
        display: none;
    }

    .calendar-grid .cal-day.has-events::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--camp-accent);
    }

    .calendar-grid .cal-day.has-workday::after {
        background: #e67e22;
    }

    .calendar-grid .cal-day.has-hunt::after {
        background: var(--success);
    }

    .event-modal {
        margin: 10px;
    }
}

/* Additional Calendar Grid Classes */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.calendar-weekdays .weekday {
    font-size: 0.75rem;
    color: var(--camp-accent);
    text-transform: uppercase;
    padding: 8px;
    font-weight: bold;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* Day Cells */
.calendar-grid .cal-day {
    position: relative;
}

.day-forecast {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.day-temp {
    font-weight: bold;
}

.optimal-star {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--gold);
    font-size: 0.9rem;
}

.event-dots {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.event-dot.workday {
    background: #e67e22;
}

.event-dot.hunt {
    background: var(--success);
}

/* Forecast Day Card Variants */
.forecast-day-temp {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--camp-cream);
    margin-bottom: 4px;
}

.forecast-day-wind {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.forecast-star {
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--gold);
    font-size: 1rem;
}

/* Forecast Card in Day Panel */
.forecast-card {
    background: rgba(100, 150, 200, 0.15);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.forecast-card.optimal {
    background: rgba(74, 124, 89, 0.2);
    border-color: var(--success);
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.forecast-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--camp-accent);
}

.optimal-badge {
    background: rgba(74, 124, 89, 0.4);
    color: #6db380;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.forecast-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.forecast-card .forecast-temp {
    font-size: 2rem;
    font-weight: bold;
    color: var(--camp-cream);
}

.forecast-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.optimal-score {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #6db380;
    font-weight: bold;
}

.forecast-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.forecast-detail .detail-label {
    color: var(--camp-accent);
    margin-right: 4px;
}

/* Calendar Day Wind Direction */
.day-wind {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

/* Event Card Additional Classes */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-edit-btn:hover {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
    transform: none;
    box-shadow: none;
}

.event-assigned {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.event-assigned strong {
    color: var(--camp-accent);
}

/* RSVP Summary */
.rsvp-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rsvp-count {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.rsvp-count.accepted {
    color: #6db380;
    background: rgba(74, 124, 89, 0.2);
}

.rsvp-count.declined {
    color: #ff9999;
    background: rgba(200, 60, 60, 0.2);
}

.rsvp-count.pending {
    color: var(--camp-accent);
    background: rgba(196, 182, 147, 0.2);
}

/* Blind List */
.blind-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.blind-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 6px;
}

.blind-item .blind-name {
    font-weight: bold;
    color: var(--camp-accent);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.blind-item .blind-hunters {
    font-size: 0.85rem;
    color: var(--camp-cream);
}

/* RSVP Actions */
.rsvp-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 182, 147, 0.2);
}

.rsvp-actions .btn {
    flex: 1;
}

.rsvp-actions .accept {
    background: var(--success);
    color: white;
}

.rsvp-actions .accept:hover {
    background: #5a9469;
}

.rsvp-actions .decline {
    background: transparent;
    border: 1px solid rgba(200, 60, 60, 0.5);
    color: #ff9999;
}

.rsvp-actions .decline:hover {
    background: rgba(200, 60, 60, 0.2);
}

/* Change RSVP link */
.btn-link {
    background: none;
    border: none;
    color: var(--camp-accent);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.btn-link:hover {
    color: var(--camp-cream);
    background: none;
    transform: none;
    box-shadow: none;
}

/* No Events */
.no-events {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
    padding: 20px;
}

/* Create Event Day Button */
.create-event-day-btn {
    width: 100%;
    margin-top: 10px;
}

/* Blind Assignment Row in Modal */
.blind-assignment-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 182, 147, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.blind-label {
    font-weight: bold;
    color: var(--camp-accent);
    font-size: 0.9rem;
}

.no-blinds {
    color: var(--camp-accent);
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Forecast Error */
.forecast-error {
    text-align: center;
    color: var(--camp-accent);
    font-style: italic;
    padding: 20px;
}

/* ============ MODAL UTILITY ============ */
/* Styles for js/modal.js reusable modal component */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--camp-green);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--camp-accent);
}

.modal-title {
    margin: 0;
    font-family: 'Rye', serif;
    color: var(--camp-accent);
    font-size: 1.2rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--camp-cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--camp-accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.modal-body {
    padding: 20px;
}

.modal-message {
    margin: 0 0 20px 0;
    color: var(--camp-cream);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 182, 147, 0.3);
    margin-top: 20px;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

/* Confirm/Alert modal variants */
.confirm-modal .modal-container,
.alert-modal .modal-container {
    max-width: 400px;
}

.confirm-modal .modal-message,
.alert-modal .modal-message {
    text-align: center;
    font-size: 1rem;
}

.confirm-modal .modal-actions,
.alert-modal .modal-actions {
    justify-content: center;
}

/* Delete Confirmation Modal */
.delete-confirm-modal .modal-container {
    max-width: 420px;
}

.delete-confirm-modal .modal-header {
    border-bottom-color: #c44;
}

.delete-confirm-modal .modal-title {
    color: #f66;
}

.delete-warning {
    text-align: center;
    padding: 10px 0;
}

.delete-warning .warning-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.delete-warning .warning-message {
    font-size: 1.1rem;
    color: var(--camp-cream);
    margin-bottom: 10px;
    line-height: 1.5;
}

.delete-warning .warning-message strong {
    color: var(--camp-accent);
}

.delete-warning .warning-note {
    font-size: 0.95rem;
    color: #f66;
    margin-bottom: 0;
}

.delete-confirm-modal .modal-actions {
    justify-content: center;
    gap: 15px;
}

.delete-confirm-modal .modal-delete-btn {
    min-width: 100px;
}

@media (max-width: 480px) {
    .modal-overlay .modal-container {
        margin: 10px;
        max-height: calc(100vh - 40px);
    }

    .modal-overlay .modal-actions {
        flex-direction: column;
    }

    .modal-overlay .modal-actions .btn {
        width: 100%;
    }
}

/* ============ MOV WARNING MODAL ============ */
.mov-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.mov-warning-content {
    background: var(--camp-green-dark);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    color: var(--camp-cream);
}

.mov-warning-content h3 {
    color: #ffcc00;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mov-warning-content h3::before {
    content: '⚠️';
}

.mov-warning-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.mov-warning-content ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.mov-warning-content li {
    margin: 5px 0;
    color: #ff9999;
}

.mov-warning-content a {
    color: var(--camp-accent);
    text-decoration: underline;
}

.mov-warning-content a:hover {
    color: var(--camp-cream);
}

.mov-warning-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.mov-warning-buttons .btn-secondary {
    background: transparent;
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
}

.mov-warning-buttons .btn-secondary:hover {
    background: rgba(196, 164, 132, 0.2);
}

/* ============ HEIC HELP MODAL ============ */
.heic-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.heic-help-content {
    background: var(--camp-green-dark);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
    width: 100%;
    color: var(--camp-cream);
}

.heic-help-content h3 {
    color: #ffcc00;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heic-help-content h3::before {
    content: '📱';
}

.heic-help-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.heic-help-content h4 {
    color: var(--camp-accent);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.heic-help-content ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.heic-help-content li {
    margin: 8px 0;
    color: var(--camp-cream);
    line-height: 1.4;
}

.heic-help-content li strong {
    color: var(--camp-accent);
}

.heic-help-content .converter-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.heic-help-content .converter-links a {
    display: inline-block;
    background: rgba(196, 164, 132, 0.2);
    border: 1px solid var(--camp-accent);
    color: var(--camp-accent);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.heic-help-content .converter-links a:hover {
    background: var(--camp-accent);
    color: var(--camp-green-dark);
}

.heic-help-content .close-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background: var(--camp-accent);
    border: none;
    border-radius: 6px;
    color: var(--camp-green-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.heic-help-content .close-btn:hover {
    background: var(--camp-cream);
}

/* ============ CATEGORY MANAGEMENT MODAL ============ */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.category-modal-content {
    background: var(--camp-green-dark);
    border: 2px solid var(--camp-accent);
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    color: var(--camp-cream);
}

.category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-modal-header h3 {
    margin: 0;
    color: var(--camp-accent);
    font-size: 1.2rem;
}

.category-modal-close {
    background: none;
    border: none;
    color: var(--camp-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.category-modal-close:hover {
    color: var(--camp-cream);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--camp-accent);
}

.category-name {
    font-weight: 500;
}

.category-delete-btn {
    background: none;
    border: none;
    color: var(--camp-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.category-delete-btn:hover {
    color: #ff6b6b;
}

.category-add-form {
    display: flex;
    gap: 10px;
}

.category-add-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--camp-accent);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--camp-cream);
    font-size: 0.95rem;
}

.category-add-form input::placeholder {
    color: var(--camp-muted);
}

.category-add-form input:focus {
    outline: none;
    border-color: var(--camp-cream);
}

.category-add-form .btn {
    padding: 10px 20px;
}

.category-hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--camp-muted);
    font-style: italic;
}

/* ============ UPLOAD ERROR MODAL ============ */
.upload-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.upload-error-content {
    background: var(--camp-green-dark);
    border: 2px solid #ff6666;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    color: var(--camp-cream);
}

.upload-error-content h3 {
    color: #ff6666;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.upload-error-content p {
    margin: 10px 0;
}

.upload-error-content .error-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.upload-error-content .error-list li {
    background: rgba(255, 102, 102, 0.1);
    border: 1px solid rgba(255, 102, 102, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0;
}

.upload-error-content .error-list strong {
    display: block;
    color: var(--camp-cream);
    margin-bottom: 5px;
}

.upload-error-content .error-reason {
    display: block;
    color: #ff9999;
    font-size: 0.9rem;
}

.upload-error-content .error-detail {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    font-family: monospace;
}

.upload-error-content .btn {
    margin-top: 15px;
}

/* ============ MOBILE TOUCH FEEDBACK ============ */
@media (hover: none) {
    /* Touch devices - use active states instead of hover */
    .drop-zone:active {
        border-color: var(--camp-accent);
        background-color: rgba(196, 164, 132, 0.1);
    }

    .gallery-item:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .btn:active {
        transform: scale(0.95);
        opacity: 0.9;
    }

    .filter-btn:active {
        background: var(--camp-accent);
        color: var(--camp-green-dark);
    }

    /* Remove hover effects that don't work on touch */
    .gallery-item:hover .photo-actions {
        opacity: 0;
    }

    .gallery-item.show-actions .photo-actions {
        opacity: 1;
    }
}

/* Improve file list on mobile */
@media (max-width: 480px) {
    #fileList {
        max-height: 150px;
    }

    .file-item {
        padding: 8px;
        font-size: 0.85rem;
    }

    .drop-zone {
        padding: 20px;
    }

    .mov-warning-content,
    .upload-error-content {
        padding: 20px;
    }

    .mov-warning-buttons {
        flex-direction: column;
    }

    .mov-warning-buttons .btn {
        width: 100%;
    }
}
