/* --- CSS Design System for Buriram United Esports Scrim App --- */

:root {
    --bg-dark: #07111e;
    --bg-card: rgba(13, 37, 76, 0.45);
    --bg-card-hover: rgba(18, 51, 102, 0.6);
    --border-color: rgba(197, 168, 128, 0.15);
    --border-focus: rgba(197, 168, 128, 0.5);
    
    --brand-navy: #0d254c;
    --brand-gold: #c5a880;
    --brand-gold-glow: rgba(197, 168, 128, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Region / Activity Colors */
    --th-color: #ef4444;       /* Thailand (Red) */
    --th-bg: rgba(239, 68, 68, 0.15);
    
    --vn-color: #10b981;       /* Vietnam (Green) */
    --vn-bg: rgba(16, 185, 129, 0.15);
    
    --tw-color: #8b5cf6;       /* Taiwan (Purple) */
    --tw-bg: rgba(139, 92, 246, 0.15);
    
    --other-color: #f59e0b;    /* Activities/Yellow (Badminton, etc.) */
    --other-bg: rgba(245, 158, 11, 0.15);
    
    --rest-color: #f472b6;     /* Rest (Pink) */
    --rest-bg: rgba(244, 114, 182, 0.15);

    --rest-pre-color: #3b82f6; /* Rest before match (Blue) */
    --rest-pre-bg: rgba(59, 130, 246, 0.15);
    
    --day-off-color: #9ca3af;  /* Day off / Vacant (Grey) */
    --day-off-bg: rgba(156, 163, 175, 0.15);

    --danger-color: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-navy);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

/* App Container */
.app-container {
    max-width: 600px; /* Force mobile view width even on desktop for perfect layout rendering */
    margin: 0 auto;
    background-color: #050b14;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 72px; /* For bottom navigation */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* Header styling */
.app-header {
    background: linear-gradient(180deg, var(--brand-navy) 0%, #050b14 100%);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    filter: drop-shadow(0 0 6px var(--brand-gold-glow));
}

.header-titles {
    flex-grow: 1;
}

.header-titles h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.header-titles p {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand-gold);
    letter-spacing: 1px;
}

/* Editor button */
.editor-lock-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.editor-lock-btn:hover {
    border-color: var(--brand-gold);
    color: var(--text-primary);
    box-shadow: 0 0 8px var(--brand-gold-glow);
}

.editor-lock-btn.unlocked {
    background: var(--brand-gold-glow);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--brand-gold);
}

/* Main Content Section */
.app-main {
    flex-grow: 1;
    padding: 16px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-gold);
}

.date-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.today-badge {
    background: var(--brand-gold);
    color: #000;
}

.info-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Timeline Cards */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: all 0.25s ease;
}

.day-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-gold-glow);
}

.day-card.current-day-highlight {
    border-left: 4px solid var(--brand-gold);
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.1);
}

.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.day-card-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.day-card-phase {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(197, 168, 128, 0.15);
    color: var(--brand-gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Card Special Event/Notes Banner */
.day-card-event {
    background: rgba(197, 168, 128, 0.06);
    border-left: 3px solid var(--brand-gold);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.day-card-event.cyan-banner {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, 0.06);
}

.day-card-event.green-banner {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
}

.day-card-event.holiday-banner {
    border-left-color: #374151;
    background: rgba(55, 65, 81, 0.1);
    color: var(--text-secondary);
}

/* Edit Floating button on card for admin */
.card-edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.card-edit-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* Scrim Slot Box */
.scrim-slots-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scrim-slot {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.scrim-time-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.scrim-time {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.scrim-matches {
    font-size: 0.55rem;
    color: var(--brand-gold);
    font-weight: 500;
}

/* Opponent Team Badge styling */
.scrim-opponent-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opponent-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.opponent-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.score-display {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 6px;
    letter-spacing: 0.5px;
}

.score-display .vs-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Replay Button styles */
.replay-btn-wrapper {
    display: flex;
    align-items: center;
}

.replay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    gap: 4px;
    transition: all 0.2s ease;
}

.replay-btn:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}

.replay-btn.disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

/* Search styling */
.search-bar-container {
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 12px 12px 38px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 60px;
    background: rgba(13, 37, 76, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    gap: 4px;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-item svg {
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--brand-gold);
}

.nav-item.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px var(--brand-gold-glow));
}

/* Editor Console */
.editor-console {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #091322;
    border-top: 1px solid var(--brand-gold);
    z-index: 80;
    padding: 8px 12px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

.editor-console.hidden {
    transform: translate(-50%, 100%);
    pointer-events: none;
}

.console-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-gold);
    background: rgba(197, 168, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.console-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.console-btn {
    border: none;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand-gold);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 8px var(--brand-gold-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: #991b1b;
    color: #fff;
}

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

.btn-xs {
    font-size: 0.6rem;
    padding: 3px 6px;
}

/* Modals styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #0d1e34;
    border: 1px solid var(--brand-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.small-modal {
    max-width: 360px;
}

.large-modal {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 0.95rem;
    color: var(--brand-gold);
    font-weight: 600;
}

.close-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-box h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--brand-gold);
}

.modal-box p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-gold);
}

.error-msg {
    color: #ef4444;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.error-msg.hidden {
    display: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-btn {
    font-family: inherit;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-btn {
    background: var(--brand-gold);
    color: #000;
}

.confirm-btn:hover {
    box-shadow: 0 0 8px var(--brand-gold-glow);
}

.delete-btn {
    background: #7f1d1d;
    color: #fca5a5;
    margin-right: auto; /* Push to the left in full-row buttons layout */
}

.delete-btn:hover {
    background: #991b1b;
}

/* Preset buttons for Add Day */
.add-days-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.preset-btn:hover {
    border-color: var(--brand-gold);
    background: rgba(197, 168, 128, 0.1);
}

.custom-days-input label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-primary);
}

/* Edit scrim row in Edit modal */
.form-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-section h4 {
    font-size: 0.8rem;
    color: var(--brand-gold);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.section-title-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title-with-btn h4 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row.align-end {
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

.form-group label {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--brand-gold);
}

.color-picker-wrapper {
    display: flex;
    gap: 4px;
}

.color-picker-wrapper input[type="color"] {
    width: 32px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.color-picker-wrapper input[type="text"] {
    width: 65px;
    text-align: center;
}

/* Edit Scrims List in Modal */
.edit-scrims-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-scrim-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    position: relative;
    padding-top: 14px;
}

.scrim-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: #fca3a3;
    font-size: 0.9rem;
    cursor: pointer;
}

.scrim-delete-btn:hover {
    color: #ef4444;
}

/* Managed teams list style */
.teams-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .teams-list-grid {
        grid-template-columns: 1fr;
    }
}

.region-column h5 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.managed-teams-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 6px;
}

.managed-team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.managed-team-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.team-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
}

.team-delete-btn:hover {
    color: #ef4444;
}

/* --- ADDED FOR SYSTEM AUTHENTICATION, JOBS AND PRE-SCRIM LINKS --- */

/* App Container Logged Out State */
.app-container.logged-out .app-header,
.app-container.logged-out .app-main,
.app-container.logged-out .bottom-nav,
.app-container.logged-out .editor-console {
    display: none !important;
}

.app-container:not(.logged-out) .login-screen {
    display: none !important;
}

/* App Login Screen Overlay */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0d254c 0%, #050b14 100%);
    animation: fadeIn 0.4s ease;
}

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 24px;
    background: rgba(13, 37, 76, 0.45);
    border: 1px solid var(--brand-gold);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.login-logo {
    margin-bottom: 16px;
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.login-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.login-form {
    text-align: left;
}

.login-form .input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 0.7rem;
    color: var(--brand-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 10px var(--brand-gold-glow);
}

.login-btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--brand-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn-submit:hover {
    background: #d7b98f;
    box-shadow: 0 0 12px var(--brand-gold-glow);
}

/* Toggle Switch for Future Days */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.toggle-text {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--brand-gold);
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 18px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Daily Jobs Table Styles */
.jobs-table-container {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.jobs-table-title {
    font-size: 0.75rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    text-align: left;
}

.jobs-table th {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jobs-table td {
    padding: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    vertical-align: middle;
}

.jobs-table tr:last-child td {
    border-bottom: none;
}

.job-time {
    font-weight: 600;
    color: var(--brand-gold);
}

.job-title {
    font-weight: 500;
}

.job-participants {
    color: var(--text-secondary);
}

.job-location {
    color: #06b6d4;
    font-weight: 500;
}

/* Scrim Actions Wrapper & Prep button */
.scrim-actions-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}

.prep-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--brand-gold);
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    gap: 2px;
    transition: all 0.2s ease;
}

.prep-btn:hover {
    background: var(--brand-gold);
    color: #000;
    box-shadow: 0 0 6px var(--brand-gold-glow);
}

/* User Accounts Management Modal Styles */
.accounts-table {
    width: 100%;
    border-collapse: collapse;
}

.accounts-table th, .accounts-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Job Rows Editor */
.edit-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-job-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    position: relative;
    padding-top: 14px;
}

.job-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: #fca3a3;
    font-size: 0.9rem;
    cursor: pointer;
}

.job-delete-btn:hover {
    color: #ef4444;
}

.time-presets button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 0.6rem;
    cursor: pointer;
}

.time-presets button:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
