﻿/* =============================================================================
   COMPONENTS - Main component styles for the RuneScape Tracker
   ============================================================================= */

/* =============================================================================
   MERCHANT ROTATION
   ============================================================================= */

.merchant-rot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.merchant-rot-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.merchant-rot-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.merchant-rot-item.high-value .merchant-rot-icon {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}
.merchant-rot-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.15s ease;
}
.merchant-rot-item:hover .merchant-rot-icon {
    transform: scale(1.15);
}
.merchant-rot-timer {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
}
.rot-label-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.rot-label-link:hover {
    color: var(--accent);
}

/* =============================================================================
   VIS WAX ROTATION
   ============================================================================= */

.viswax-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
}
.viswax-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.viswax-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}
.viswax-slot.slot1 {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.viswax-label {
    color: #666;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.viswax-rune {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #eee;
    font-weight: 600;
    background: rgba(255,152,0,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,152,0,0.2);
    position: relative;
}
.viswax-rune.best {
    background: rgba(100, 255, 100, 0.1);
    border-color: rgba(100, 255, 100, 0.3);
}
.viswax-rune img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.viswax-options {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.viswax-or {
    color: #555;
    font-size: 0.6rem;
    font-style: italic;
}
.viswax-timer {
    font-size: 0.7rem;
    color: #666;
}

/* Vis Wax Footer (timer + hint) */
.viswax-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

/* Vis Wax hover hint styling */
.viswax-hover-hint {
    font-size: 0.65rem;
    color: #555;
    font-style: italic;
    transition: color 0.15s ease;
}

/* Highlight hint when hovering anywhere on the vis wax row */
#rot-viswax:hover .viswax-hover-hint,
.rot-row:has(#rot-viswax):hover .viswax-hover-hint {
    color: var(--accent);
}

/* Make the entire vis wax area feel interactive */
#rot-viswax {
    cursor: pointer;
}
.rot-row:has(#rot-viswax) {
    cursor: pointer;
    transition: background 0.15s ease;
}
.rot-row:has(#rot-viswax):hover {
    background: rgba(255, 152, 0, 0.05);
}

/* The popup is appended to body as a portal */
.viswax-popup-portal {
    position: fixed;
    background: linear-gradient(145deg, #1e1e1e 0%, #141414 100%);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 12px;
    padding: 0;
    width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05), 0 0 20px rgba(255, 152, 0, 0.15);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    transform: scale(0.95);
}
.viswax-popup-portal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}
/* Arrow on the left side - triangle pointing INTO the popup (pointing right) */
.viswax-popup-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 152, 0, 0.4);
}
.viswax-popup-portal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #1e1e1e;
}

/* Hidden template popup inside hoverable (used as source) */
.viswax-hoverable .viswax-popup {
    display: none;
}
/* Flipped arrow when popup is on the left */
.viswax-popup.flip-arrow::before {
    left: auto;
    right: -8px;
    border-right-color: transparent;
    border-left-color: rgba(255, 152, 0, 0.4);
}
.viswax-popup.flip-arrow::after {
    left: auto;
    right: -6px;
    border-right-color: transparent;
    border-left-color: #1e1e1e;
}

/* Compact Vis Wax Popup */
.viswax-popup-large {
    width: 280px;
    min-width: unset;
    max-width: unset;
}
.viswax-popup-large .viswax-popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}
.viswax-popup-large .popup-icon {
    width: 20px;
    height: 20px;
}
.viswax-popup-section {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.viswax-popup-section:last-of-type {
    border-bottom: none;
}
.viswax-popup-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.15);
}
.viswax-popup-label .slot-note {
    font-weight: 400;
    font-size: 0.6rem;
    color: #666;
    font-style: italic;
}
.wax-amount {
    font-size: 0.6rem;
    color: #6c6;
    background: rgba(100, 200, 100, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 700;
    white-space: nowrap;
}

/* Slot 1 Layout */
.viswax-popup-best {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: rgba(100, 200, 100, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(100, 200, 100, 0.1);
}
.viswax-popup-best .best-label {
    font-size: 0.65rem;
    color: #6c6;
    font-weight: 600;
}
.viswax-popup-alts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    flex-wrap: wrap;
}
.viswax-popup-alts .alt-label {
    font-size: 0.6rem;
    color: #888;
    font-weight: 600;
}
.viswax-popup-rune-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Slot 2 Grid Layout */
.viswax-popup-slot2-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.viswax-popup-slot2-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s, border-color 0.2s;
}
.viswax-popup-slot2-option:hover {
    background: rgba(255, 152, 0, 0.05);
    border-color: rgba(255, 152, 0, 0.15);
}
.viswax-popup-slot2-option .viswax-popup-rune.best {
    flex-shrink: 0;
}
.slot2-alts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
}
.viswax-popup-rune {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
}
.viswax-popup-rune.best {
    background: rgba(100, 255, 100, 0.08);
    border-color: rgba(100, 255, 100, 0.2);
}
.viswax-popup-rune img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.viswax-popup-rune span {
    font-size: 0.7rem;
    color: #ddd;
    font-weight: 500;
}
.viswax-popup-rune.small {
    padding: 3px 6px;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}
.viswax-popup-rune.small img {
    width: 14px;
    height: 14px;
}
.viswax-popup-rune.small span {
    font-size: 0.6rem;
    color: #999;
}

/* Popup Header */
.viswax-popup-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.08) 100%);
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 10px 10px 0 0;
    text-align: center;
}

/* Popup Footer */
.viswax-popup-footer {
    padding: 8px 14px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.viswax-popup-footer .popup-tip {
    font-size: 0.6rem;
    color: #777;
}
.viswax-popup-footer a {
    font-size: 0.65rem;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.viswax-popup-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}
.no-alts {
    font-size: 0.65rem;
    color: #555;
    font-style: italic;
}

/* =============================================================================
   VOICE OF SEREN
   ============================================================================= */

.vos-wrapper, .vos-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; color: #eee; }

/* =============================================================================
   TOGGLE SWITCHES
   ============================================================================= */

.toggle-switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.small-switch { width: 44px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #333; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
.small-switch .slider:before { height: 16px; width: 16px; }
input:checked + .slider { background: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.small-switch input:checked + .slider:before { transform: translateX(22px); }

/* =============================================================================
   RANK MODE TOGGLE
   ============================================================================= */

.rank-toggle-container { display: none; align-items: center; gap: 8px; margin-left: auto; }
.rank-switch { position: relative; display: inline-block; width: 44px; height: 22px; flex-shrink: 0; }
.rank-switch input { opacity: 0; width: 0; height: 0; }
.rank-slider { position: absolute; cursor: pointer; inset: 0; background: #333; transition: .4s; border-radius: 22px; overflow: hidden; }
.rank-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
.rank-switch input:checked + .rank-slider { background: var(--accent); }
.rank-switch input:checked + .rank-slider:before { transform: translateX(22px); }
.rank-label { font-size: 0.75rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* =============================================================================
   TASKS CONTAINER & CARDS
   ============================================================================= */

.tasks-container { max-width: 1400px; margin: 0 auto; padding: 20px; opacity: 0; animation: fadeInUp 0.8s ease-out 0.4s forwards; width: 100%; flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 1440px) or (max-height: 900px) {
    .tasks-container { padding: 10px 15px; }
    .tab-content { padding: 15px!important; }
    .reset-bar { margin-bottom: 10px!important; padding: 8px!important; }
    .task-item { padding: 8px 12px!important; }
    .task-grid { gap: 8px!important; }
}
.task-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; flex: 1; display: flex; flex-direction: column; height: 100%; }

/* =============================================================================
   TAB NAVIGATION
   ============================================================================= */

.tab-header { 
    display: flex; 
    background: transparent; 
    border-bottom: 1px solid #222; 
    flex-wrap: wrap; 
    flex-shrink: 0; 
    padding: 15px 10px; 
    gap: 10px; 
    justify-content: center;
}
.tab-btn { 
    flex: 0 1 auto; 
    padding: 10px 24px; 
    background: #080808; 
    border: 1px solid #333; 
    color: #666; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    min-width: 100px; 
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
@media (max-width: 1440px) or (max-height: 900px) { .tab-btn { padding: 8px 16px; min-width: 80px; } }
.tab-btn:hover { 
    background: #111; 
    color: #ddd; 
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}
.tab-btn.active { 
    background: #000; 
    color: var(--accent); 
    border-color: var(--accent);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255,152,0,0.15), inset 0 0 10px rgba(255,152,0,0.05);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 10px rgba(255,152,0,0.4);
}
.tab-content { display: none; padding: 25px; animation: fadeInUp 0.3s ease-out; }
.tab-content.active { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }

/* =============================================================================
   RESET BAR & TASK GRID
   ============================================================================= */

.reset-bar { background: #111; padding: 12px; border-radius: 6px; margin-bottom: 20px; text-align: center; font-size: 0.9rem; color: var(--text-sub); border: 1px solid #222; flex-shrink: 0; }
.reset-time { color: var(--blue); font-weight: 600; margin-left: 8px; font-feature-settings: "tnum"; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.task-item { display: flex; align-items: center; justify-content: space-between; background: #1a1a1a; padding: 12px 15px; border-radius: 6px; border: 1px solid #222; border-left: 3px solid transparent; transition: 0.2s; gap: 10px; }
.task-item:hover { border-color: #444; background: #222; border-left-color: var(--accent); }
.task-item:hover .hide-task-btn { opacity: 1 !important; }
.hide-task-btn:hover { color: #ff9800 !important; opacity: 1 !important; }
.task-item input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin-right: 12px; cursor: pointer; transition: 0.2s; }
.task-item label { cursor: pointer; flex: 1; font-size: 0.95rem; color: #ddd; }
.task-item input:checked + label { text-decoration: line-through; color: #555; }

/* =============================================================================
   DRAG AND DROP TASKS
   ============================================================================= */

.draggable-task { cursor: default; }
.draggable-task .drag-handle { 
    cursor: grab; 
    color: #444; 
    font-size: 1rem; 
    padding: 0 8px 0 0; 
    user-select: none;
    transition: color 0.2s;
}
.draggable-task:hover .drag-handle { color: #888; }
.draggable-task .drag-handle:active { cursor: grabbing; }
.draggable-task.dragging { 
    opacity: 0.5; 
    background: #252525; 
    border-color: var(--accent);
    transform: scale(0.98);
}
.draggable-task.drag-over { 
    border-color: var(--accent) !important;
    background: rgba(255, 152, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}
.hidden-tasks-summary:hover { background: rgba(255,152,0,0.2) !important; }
.wiki-btn { background: #2a2a2a; color: #888; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; text-decoration: none; border: 1px solid #444; transition: 0.2s; text-transform: uppercase; white-space: nowrap; }
.wiki-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 2px 5px rgba(255,152,0,0.3); }

/* =============================================================================
   TIMED TASKS
   ============================================================================= */

.timed-info-col { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.timed-bar-wrapper { width: 100%; margin-top: 5px; padding-right: 15px; }
.timed-name { font-weight: 600; font-size: 0.95rem; color: #eee; }
.timed-timer-text { font-size: 0.85rem; color: #888; margin-top: 2px; font-variant-numeric: tabular-nums; }
.timed-active { color: var(--green); font-weight: 700; }
.timed-warning { color: var(--urgent-red); font-weight: 700; }

/* =============================================================================
   D&D SPOTLIGHT
   ============================================================================= */

.spotlight-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
}

@media (max-width: 768px) {
    .spotlight-container {
        grid-template-columns: 1fr;
    }
}

.spotlight-current {
    display: flex;
    justify-content: center;
}

.spotlight-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 320px;
}

.spotlight-card.active-spotlight {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.15);
}

.spotlight-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.spotlight-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 15px auto 10px;
    display: block;
}

.spotlight-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 10px 0 5px;
}

.spotlight-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.spotlight-timer .timer-label {
    color: #888;
    font-size: 0.85rem;
}

.spotlight-timer .countdown-value {
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.spotlight-wiki-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 12px;
    color: #aaa;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.spotlight-wiki-btn:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.spotlight-upcoming {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
}

.spotlight-upcoming-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.spotlight-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.spotlight-upcoming-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.spotlight-upcoming-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.spotlight-upcoming-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spotlight-upcoming-name {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
}

.spotlight-upcoming-date {
    font-size: 0.75rem;
    color: #666;
}

/* =============================================================================
   CUSTOM TIMERS
   ============================================================================= */

.custom-timer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .custom-timer-wrapper {
        grid-template-columns: 1fr;
    }
}

.custom-timer-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    height: 100%;
    min-height: 300px;
}

.panel-header-inner {
    padding: 10px 15px;
    background: #161616;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bbb;
    letter-spacing: 0.5px;
}
.panel-icon { font-size: 1rem; }

.ct-form-body {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ct-input-group { display: flex; flex-direction: column; gap: 4px; }
.ct-input-group label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper { position: relative; }
.ct-input {
    width: 100%;
    background: #080808;
    border: 1px solid #444;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.ct-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,152,0,0.1); }

.ct-row-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

.time-inputs-styled {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #080808;
    border: 1px solid #444;
    padding: 4px 8px;
    border-radius: 8px;
}
.time-field { display: flex; align-items: baseline; gap: 2px; flex: 1; }
.ct-input-num {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    text-align: right;
    outline: none;
    padding: 4px 0;
}
.time-label { color: #666; font-size: 0.75rem; font-weight: 600; }
.time-sep { color: #444; font-weight: 700; }

.sound-select-wrapper {
    display: flex;
    gap: 6px;
}
.style-select { flex: 1; padding: 6px 10px; }
.sound-preview-btn {
    background: #222;
    border: 1px solid #444;
    color: #ddd;
    width: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.sound-preview-btn:hover { background: #333; color: var(--accent); border-color: var(--accent); }

.ct-actions-row {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #222;
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.action-btn.primary { background: var(--accent); color: #000; }
.action-btn.primary:hover { background: #ffb74d; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(255,152,0,0.3); }
.action-btn.secondary { background: #222; color: #ddd; border: 1px solid #333; }
.action-btn.secondary:hover { background: #2a2a2a; border-color: #555; color: #fff; }

/* =============================================================================
   TIMER PRESETS
   ============================================================================= */

.presets-container-scroll {
    padding: 10px 12px;
    overflow-y: auto;
    flex: 1;
    max-height: 350px;
}

.presets-grid { display: flex; flex-direction: column; gap: 6px; }

.preset-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
}
.preset-card:hover {
    background: #222;
    border-color: #444;
    transform: translateX(2px);
}

.preset-info {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 1;
    gap: 2px;
}
.preset-name { font-weight: 600; color: #eee; font-size: 0.9rem; }
.preset-meta { display: flex; align-items: center; gap: 6px; }
.preset-time { color: var(--blue); font-size: 0.75rem; font-weight: 600; }
.preset-sound-icon { color: #666; font-size: 0.75rem; }

.preset-actions {
    display: flex;
    gap: 4px;
}
.preset-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.05);
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.preset-btn:hover { color: #fff; transform: scale(1.1); }
.preset-btn.start:hover { background: rgba(76,175,80,0.2); color: #4caf50; border-color: #4caf50; }
.preset-btn.edit:hover { background: rgba(79,195,247,0.2); color: #4fc3f7; border-color: #4fc3f7; }
.preset-btn.delete:hover { background: rgba(255,51,51,0.2); color: #ff3333; border-color: #ff3333; }

/* =============================================================================
   TIMER ALERTS
   ============================================================================= */

#timer-alert-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: transparent;
    transition: background 0.3s;
}
#timer-alert-container.active {
    background: rgba(0,0,0,0.6);
    pointer-events: auto;
    backdrop-filter: blur(2px);
}
.timer-alert-box {
    background: #1a1a1a;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4), 0 10px 40px rgba(0,0,0,0.6);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    animation: alertPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.timer-alert-box > .timer-alert-icon,
.timer-alert-box > .timer-alert-content {
    text-align: center;
}
.timer-alert-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,152,0,0.1), transparent);
    animation: shineScroll 2s linear infinite;
    pointer-events: none;
}
.timer-alert-icon {
    font-size: 2.5rem;
    animation: float 2s infinite ease-in-out;
}
.timer-alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.timer-alert-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
}
.timer-alert-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,152,0,0.3);
}
.timer-alert-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}
.timer-alert-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.timer-alert-btn svg {
    flex-shrink: 0;
}
.timer-alert-btn.restart {
    background: #4caf50;
    color: #fff;
}
.timer-alert-btn.restart:hover {
    background: #66bb6a;
    transform: scale(1.05);
}
.timer-alert-btn.dismiss {
    background: #e53935;
    color: #fff;
}
.timer-alert-btn.dismiss:hover {
    background: #ef5350;
    transform: scale(1.05);
}
/* Legacy support */
.timer-alert-dismiss {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 1;
}
.timer-alert-dismiss:hover {
    background: #ffb74d;
    transform: scale(1.05);
}
@keyframes alertPopIn {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* =============================================================================
   TRACKER LAYOUT
   ============================================================================= */

.tracker-container { flex: 1; width: 100%; max-width: 2200px; margin: 0 auto; padding: 0 20px 20px; display: flex; flex-direction: column; overflow: hidden; height: 100%; min-height: 0; }
.tracker-controls { padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; max-width: 1000px; width: 100%; margin: 10px auto; flex-wrap: wrap; flex-shrink: 0; }
.tracker-split-layout { display: grid; grid-template-columns: minmax(320px, 1.3fr) minmax(0, 850px) minmax(320px, 1.3fr); gap: 20px; margin-top: 0; align-items: stretch; flex: 1; min-height: 0; overflow: hidden; padding-bottom: 0; justify-items: stretch; position: relative; }
.sidebar-panel, .results-section { height: 100%; max-height: 100%; overflow: hidden; position: static; display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; min-height: 0; }
.right-sidebar { display: flex; flex-direction: column; gap: 0; overflow: hidden; min-width: 0; max-height: 100%; height: 100%; min-height: 0; }
#clan-results { flex: 1; height: auto; overflow-y: visible; min-height: 0; }
.tracker-controls, .results-section, .sidebar-panel, #clan-results { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: 0.3s; }
.tracker-controls:hover, .results-section:hover, .sidebar-panel:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.6); border-color: var(--accent); transform: none; }
/* Ensure results section border is always fully visible */
#player-results { position: relative; z-index: 1; overflow: hidden; min-width: 0; max-width: 100%; }

/* =============================================================================
   SEARCH CONTROLS & INPUTS
   ============================================================================= */

#search-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.95);
    border-radius: 12px;
    z-index: 50;
    grid-column: 1 / -1;
}

/* Dual Search Layout */
.tracker-controls.dual-search, .tracker-controls.triple-search { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; justify-content: center; padding: 12px 25px; }
.search-section { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 200px; max-width: 320px; }
.search-label { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.search-label-with-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.7rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.gim-type-toggle { display: flex; gap: 8px; align-items: center; }
.gim-radio { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 500; color: #aaa; cursor: pointer; transition: all 0.2s; padding: 4px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.02); border: 1px solid #333; }
.gim-radio:hover { color: #ddd; background: rgba(255, 255, 255, 0.05); border-color: #444; }
.gim-radio input[type="radio"] { appearance: none; width: 14px; height: 14px; border: 2px solid #444; border-radius: 50%; background: #0a0a0a; cursor: pointer; transition: all 0.2s; position: relative; margin: 0; }
.gim-radio input[type="radio"]:hover { border-color: #666; }
.gim-radio input[type="radio"]:checked { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 2px rgba(255, 167, 38, 0.15), 0 0 8px rgba(255, 167, 38, 0.3); }
.gim-radio input[type="radio"]:checked::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #000; }
.gim-radio:has(input[type="radio"]:checked) { color: var(--accent); border-color: var(--accent); background: rgba(255, 167, 38, 0.08); }
.search-label svg { stroke: #555; width: 14px; height: 14px; }
.search-divider { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, #333, transparent); flex-shrink: 0; }
.search-box-styled { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid #333; background: #0a0a0a; transition: 0.2s; }
.search-box-styled:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 167, 38, 0.15); }
.search-box-styled input { flex: 1; background: transparent; border: none; padding: 8px 12px; color: #fff; font-size: 0.85rem; outline: none; }
.search-box-styled input::placeholder { color: #555; }
.search-box-styled input::selection { background: #333; color: #fff; }
.search-box-styled input:-webkit-autofill,
.search-box-styled input:-webkit-autofill:hover,
.search-box-styled input:-webkit-autofill:focus,
.search-box-styled input:-webkit-autofill:active { 
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important; 
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}
.search-box-styled button { background: var(--accent); border: none; color: #000; padding: 0 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; position: relative; min-width: 44px; }
.search-box-styled button:hover { background: #ffb74d; }
.search-box-styled button svg { stroke: #000; width: 16px; height: 16px; }
.search-box-styled button.loading svg { opacity: 0; }
.search-box-styled button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

/* Search Loading Overlay for results area */
.search-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}
.search-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,152,0,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
}
.search-loading-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============================================================================
   GLOBAL SELECTION & AUTOFILL STYLES
   ============================================================================= */

::selection { background: #333; color: #fff; }
::-moz-selection { background: #333; color: #fff; }
input::selection, textarea::selection { background: #333; color: #fff; }
input::-moz-selection, textarea::-moz-selection { background: #333; color: #fff; }

/* Global dark autofill styling - prevents white background on autocomplete */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =============================================================================
   MODE TOGGLE & SEARCH BOX
   ============================================================================= */

.mode-toggle { display: flex; background: #111; padding: 4px; border-radius: 8px; border: 1px solid #333; flex-shrink: 0; }
.mode-btn { background: transparent; border: none; padding: 8px 16px; color: #888; font-weight: 600; cursor: pointer; border-radius: 6px; transition: 0.2s; font-size: 0.9rem; }
.mode-btn.active { background: #333; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.search-box-large { width: auto; flex: 1; min-width: 280px; max-width: 500px; display: flex; gap: 10px; }
.search-box-large input { flex: 1; background: #050505; border: 1px solid #444; padding: 10px 14px; border-radius: 8px; color: #fff; font-size: 0.95rem; outline: none; transition: 0.2s; appearance: none; }
.search-box-large input:focus { border-color: var(--accent); }
.search-box-large button { background: var(--accent); border: none; color: #000; font-weight: 700; padding: 0 20px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
.search-box-large button:hover { background: #ffb74d; }
.error-msg { color: #f33; text-align: center; font-weight: 500; width: 100%; order: 3; margin-top: 0; min-height: 0; }
.error-msg:not(:empty) { margin-top: 10px; }
#player-results { grid-column: 2; width: 100%; }

/* =============================================================================
   PROFILE HEADER
   ============================================================================= */

.profile-header { display: flex; flex-direction: column; padding: 15px 20px 12px; border-bottom: 1px solid #333; margin: 0; gap: 0; align-items: center; text-align: left; position: relative; }
.profile-identity { display: flex; flex-direction: row; gap: 15px; align-items: center; justify-content: center; width: 100%; }
.profile-details-col { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; padding-top: 0; align-items: flex-start; width: auto; }
#p-name { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1; color: #fff; text-align: left; }
.profile-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-height: 24px; }
.p-subtitle { width: 100%; margin-top: 4px; }

/* =============================================================================
   CLAN BANNER
   ============================================================================= */

#clan-banner-container {
    position: absolute;
    top: -30px;
    right: 30px;
    z-index: 10;
}

#clan-banner-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
    image-rendering: auto;
    transform-origin: top center;
    animation: bannerWind 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes bannerWind {
    0% { 
        transform: perspective(500px) rotateY(-1.5deg) skewX(-0.5deg) translateX(0);
    }
    12% { 
        transform: perspective(500px) rotateY(0.5deg) skewX(0.3deg) translateX(1px);
    }
    28% { 
        transform: perspective(500px) rotateY(2deg) skewX(1deg) scaleX(0.99) translateX(2px);
    }
    42% { 
        transform: perspective(500px) rotateY(1deg) skewX(0.5deg) scaleX(0.995) translateX(1px);
    }
    58% { 
        transform: perspective(500px) rotateY(2.5deg) skewX(1.2deg) scaleX(0.985) translateX(2px);
    }
    72% { 
        transform: perspective(500px) rotateY(0.8deg) skewX(0.4deg) scaleX(0.99) translateX(1px);
    }
    85% { 
        transform: perspective(500px) rotateY(-0.5deg) skewX(-0.2deg) translateX(0);
    }
    100% { 
        transform: perspective(500px) rotateY(-1.5deg) skewX(-0.5deg) translateX(0);
    }
}

/* =============================================================================
   STATS & SIDEBAR
   ============================================================================= */

.rank-badge { background: #222; padding: 4px 10px; border-radius: 6px; font-weight: 600; color: #bbb; border: 1px solid #333; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.2); font-size: 0.85rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; align-items: center; justify-content: flex-start; }
.stat-pill { display: flex; align-items: center; background: #111; border: 1px solid #333; padding: 4px 12px; border-radius: 30px; gap: 6px; transition: 0.2s; }
.stat-pill:hover { border-color: #555; background: #1a1a1a; }
.stat-pill span { font-size: 0.85rem; color: #eee; font-weight: 600; font-feature-settings: "tnum"; }

.sidebar-tabs { display: flex; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.sidebar-tab-btn { flex: 1; padding: 15px 10px; background: none; border: none; color: var(--text-sub); font-weight: 600; cursor: pointer; transition: 0.2s; text-transform: uppercase; font-size: 0.8rem; border-bottom: 2px solid transparent; }
.sidebar-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.sidebar-content { display: none; flex: 1; overflow-y: auto; padding: 20px; }
.sidebar-content.active { display: flex; flex-direction: column; }
.quest-filters { padding-bottom: 12px; border-bottom: 1px solid #333; margin-bottom: 12px; width: 100%; }
#quest-filter-select { width: 100%; background: #1a1a1a; color: #eee; border: 1px solid #444; padding: 8px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; outline: none; transition: 0.2s; }
#quest-filter-select:hover { border-color: #666; }
#quest-filter-select:focus { border-color: var(--accent); }
#quest-filter-select optgroup { color: #888; font-style: normal; font-size: 0.8rem; padding: 4px 0; }
#quest-filter-select option { color: #eee; background: #1a1a1a; padding: 4px 8px; }

/* Quest search input in profile tab */
.quest-search-row { margin-bottom: 8px; }
.quest-search-input {
    width: 100%;
    background: #1a1a1a;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.quest-search-input:hover { border-color: #666; }
.quest-search-input:focus { border-color: var(--accent); }
.quest-search-input::placeholder { color: #777; }

#quest-list-content .log-item { padding-bottom: 8px; margin-bottom: 8px; }
.log-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* =============================================================================
   ADMIN PANELS & MODALS
   ============================================================================= */

.admin-role-panel {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,152,0,0.05));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 20px 15px;
}
.admin-role-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 10px;
}
.admin-role-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.admin-role-controls select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}
.admin-role-controls button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-role-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}
.admin-role-status {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 18px;
}

/* Admin Modal Styles */
.admin-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.admin-modal-content.admin-modal-wide {
    max-width: 550px;
}
.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.admin-modal-body {
    padding: 20px;
}
.admin-modal-user {
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #ff9800;
    font-weight: 500;
}
.admin-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 16px 16px;
}
.admin-modal-footer .btn-secondary {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-modal-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.admin-modal-footer .btn-primary {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.4);
}

/* Admin Action Buttons in Profile Header */
.profile-action-btn.admin-btn {
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(255,152,0,0.1));
    border: 1px solid rgba(255,152,0,0.4);
    color: #ff9800;
}
.profile-action-btn.admin-btn:hover {
    background: linear-gradient(135deg, rgba(255,152,0,0.3), rgba(255,152,0,0.2));
    border-color: rgba(255,152,0,0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

/* Admin Permissions Panel */
.admin-permissions-panel {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.05));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 20px 15px;
}
.admin-permissions-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 12px;
}
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.permission-item:hover {
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.3);
}
.permission-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}
.permission-item .perm-icon {
    font-size: 1rem;
}
.permission-item .perm-label {
    font-size: 0.75rem;
    color: #ccc;
    flex: 1;
}
.permission-item:has(input:checked) {
    background: rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.4);
}
.permission-item:has(input:checked) .perm-label {
    color: #fff;
}
.permissions-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.permissions-actions .btn-secondary {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.permissions-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.permissions-actions .btn-primary {
    padding: 6px 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.permissions-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.permissions-status {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 18px;
    text-align: right;
}

/* =============================================================================
   LOCATION TABS (CIRCUS & PENGUINS)
   ============================================================================= */

.location-content {
    padding: 20px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #222;
}

/* =============================================================================
   CIRCUS LAYOUT
   ============================================================================= */

.circus-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.circus-columns {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
    align-items: stretch;
}

.circus-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.circus-info .location-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.circus-info .location-display .location-icon {
    width: 80px;
    height: 80px;
}

.circus-info .location-display .location-info {
    align-items: center;
}

.circus-info .location-display .location-value {
    font-size: 1.6rem;
}

.circus-upcoming {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.circus-upcoming .upcoming-display {
    padding: 15px 20px;
    flex-shrink: 0;
}

.circus-upcoming .upcoming-header {
    flex: 1;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
    flex: 1;
    justify-content: space-evenly;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1a1a1a, #141414);
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #444;
    transition: all 0.2s;
}

.upcoming-item:hover {
    background: linear-gradient(135deg, #222, #1a1a1a);
    border-color: #333;
}

.upcoming-item:first-child {
    border-left-color: var(--accent);
}

.upcoming-item:nth-child(2) {
    border-left-color: #ffb74d;
}

.upcoming-item:nth-child(3) {
    border-left-color: #4fc3f7;
}

.upcoming-week {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    min-width: 65px;
}

.upcoming-location {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ddd;
    flex: 1;
}

.upcoming-date {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .circus-columns {
        flex-direction: column;
    }
    
    .circus-info,
    .circus-upcoming {
        min-width: 100%;
    }
}

.circus-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.timer-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ade80;
    font-family: 'Consolas', 'Monaco', monospace;
}

.circus-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    max-width: 300px;
    align-self: center;
}

.circus-map-image {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #333;
    object-fit: contain;
    background: #0a0a0a;
}

.circus-wiki-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: #080808;
    border: 1px solid #333;
    color: #888;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.circus-wiki-btn:hover {
    background: #111;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5), 0 0 15px rgba(255,152,0,0.15);
}

/* =============================================================================
   LOCATION DISPLAY
   ============================================================================= */

.location-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #111);
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.location-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 152, 0, 0.3));
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.location-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.location-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
}

.location-meta {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #222;
}

.updated-info {
    font-size: 0.75rem;
    color: #555;
    font-style: italic;
}

.edit-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #151515;
    border-radius: 8px;
    border: 1px solid #333;
    align-items: flex-start;
}

.edit-section input,
.edit-section textarea {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    color: #eee;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.edit-section input:focus,
.edit-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.edit-section textarea {
    min-height: 120px;
}

.save-location-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.save-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* =============================================================================
   PENGUINS TAB
   ============================================================================= */

.penguins-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1a1a1a, #111);
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    margin-bottom: 15px;
}

.penguins-header .location-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.penguins-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.penguins-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.penguins-reset-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    flex-shrink: 0;
}

.penguins-reset-timer .reset-label {
    color: #888;
    font-size: 0.8rem;
}

.penguins-reset-timer .reset-countdown {
    color: #4fc3f7;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.penguins-reset-timer .reset-countdown.urgent {
    color: #f5a623;
    animation: pulse-urgent 1s infinite;
}

.penguins-reset-timer .reset-countdown.resetting {
    color: #4caf50;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.penguins-world-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    color: #8bc34a;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.penguins-world-notice .world-icon {
    font-size: 1rem;
}

.penguins-world-notice strong {
    color: #4caf50;
    font-weight: 700;
}

.penguins-btn-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.penguins-desc {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.penguins-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.penguins-update-time {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.penguins-update-time::before {
    content: '🕐';
}

/* =============================================================================
   PENGUIN ITEMS
   ============================================================================= */

.penguin-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 12px 14px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #252525;
    border-left: 3px solid #4fc3f7;
    transition: all 0.2s;
}

/* Main row with checkbox, number, location, disguise, points, quest */
.penguin-main-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Details row with spawn notes and sighting */
.penguin-details-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
    margin-top: 2px;
}

/* Spawn notes */
.penguin-spawn-notes {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spawn-notes-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.spawn-notes-text {
    line-height: 1.4;
    color: #999;
}

/* Sighting column */
.penguin-sighting-col {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.penguin-item:hover {
    background: #222;
    border-color: #333;
}

.penguin-item.polar-bear {
    border-left-color: #f5a623;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), transparent);
}

.penguin-item.polar-bear .penguin-num {
    color: #f5a623;
}

.penguin-num {
    color: #4fc3f7;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 4px;
}

.penguin-loc {
    color: #ddd;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    min-width: 120px;
}

.penguin-disguise-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
    image-rendering: pixelated;
}

.penguin-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-right: 12px;
}

.penguin-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.penguin-disguise-text {
    font-size: 0.8rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.penguin-points {
    color: #4fc3f7;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(79, 195, 247, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 35px;
    text-align: center;
}

.penguin-quest {
    color: #f5a623;
    font-size: 0.75rem;
    background: rgba(245, 166, 35, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.penguin-quest.dangerous {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.15);
}

/* =============================================================================
   PENGUIN NOTES
   ============================================================================= */

.penguin-note-col {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
    flex: 2;
    justify-content: flex-end;
}

.penguin-note-btn {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.2s;
    flex-shrink: 0;
}

.penguin-note-btn:hover {
    opacity: 1;
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
}

.penguin-user-note {
    color: #8bc34a;
    font-size: 0.8rem;
    background: rgba(139, 195, 74, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(139, 195, 74, 0.15);
}

.penguin-user-note small {
    color: #666;
    font-size: 0.7rem;
}

/* Wiki-sourced sighting notes */
.penguin-wiki-note {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.penguin-wiki-note .wiki-time {
    color: #78909c;
    font-style: italic;
}

.penguin-wiki-note .wiki-source {
    color: #5c92ba;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.penguin-no-note {
    color: #555;
    font-size: 0.8rem;
    font-style: italic;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}
/* Penguin Note Modal Styles */
.penguin-note-modal {
    max-width: 480px;
}

.penguin-note-warnings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.penguin-note-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.penguin-note-warning .warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.penguin-note-warning.world-warning {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.3);
    color: #8ed4f8;
}

.penguin-note-warning.world-warning strong {
    color: #4fc3f7;
}

.penguin-note-warning.public-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ffcc80;
}

.penguin-note-warning.public-warning strong {
    color: #ff9800;
}

.penguin-note-label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.penguin-note-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive penguin layout */
@media (max-width: 900px) {
    .penguin-main-row {
        flex-wrap: wrap;
    }
    
    .penguin-details-row {
        padding-left: 0;
    }
    
    .penguin-quest {
        flex-basis: 100%;
        margin-top: 4px;
    }
    
    .penguins-top-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .penguins-world-notice {
        order: 3;
        flex-basis: 100%;
    }
}

/* =============================================================================
   PENGUIN CHECKBOX & STATE
   ============================================================================= */

.penguin-checkbox-label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.penguin-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.penguin-checkmark {
    height: 20px;
    width: 20px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 4px;
    transition: all 0.2s;
}

.penguin-checkbox:checked ~ .penguin-checkmark {
    background: #4caf50;
    border-color: #4caf50;
}

.penguin-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.penguin-checkbox:checked ~ .penguin-checkmark:after {
    display: block;
}

/* Found state */
.penguin-item.found {
    opacity: 0.6;
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

.penguin-item.found .penguin-loc {
    text-decoration: line-through;
    color: #888;
}

/* Note input row */
.penguin-note-input {
    display: flex;
    gap: 8px;
    padding: 8px 15px 8px 50px;
    background: #151515;
    border-radius: 0 0 6px 6px;
    margin-top: -8px;
    margin-bottom: 8px;
}

.penguin-note-input input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 10px;
    color: #ddd;
    font-size: 0.85rem;
}

.penguin-note-input input:focus {
    border-color: #4fc3f7;
    outline: none;
}

.penguin-note-input button {
    background: #4fc3f7;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    color: #000;
    cursor: pointer;
    font-weight: 600;
}

.penguin-note-input button:hover {
    background: #3db8e8;
}

/* =============================================================================
   PENGUINS HEADER & COUNTER
   ============================================================================= */

.penguins-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 6px;
}

.penguins-update-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.penguins-header-row .penguins-update-time {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.penguins-wiki-info {
    font-size: 0.75rem;
    color: #64b5f6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.penguins-counter {
    font-size: 0.9rem;
    color: #888;
}

.penguins-counter #penguin-counter {
    font-weight: 700;
    color: #4fc3f7;
}

.penguins-counter #penguin-counter.all-found {
    color: #4caf50;
}

.no-penguins {
    padding: 30px;
    text-align: center;
    color: #555;
    font-style: italic;
}

.loading-placeholder {
    padding: 30px;
    text-align: center;
    color: #666;
}

/* Wiki link in reset bar */
.reset-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Circus Schedule */
.circus-schedule {
    margin-top: 15px;
    padding: 15px;
    background: #151515;
    border-radius: 8px;
    border: 1px solid #222;
}

.schedule-title {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 6px;
    border-left: 3px solid #666;
    transition: all 0.2s;
}

.schedule-item:first-child {
    border-left-color: var(--accent);
}

.schedule-date {
    font-size: 0.8rem;
    color: #888;
    min-width: 50px;
}

.schedule-location {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 600;
}

/* =============================================================================
   PENGUIN POINTS COLORS
   ============================================================================= */

.penguin-item.points-1 {
    border-left-color: #81c784;
}

.penguin-item.points-2 {
    border-left-color: #4fc3f7;
}

.penguin-item.points-3 {
    border-left-color: #ffb74d;
}

.penguin-item.points-1 .penguin-points { color: #81c784; background: rgba(129, 199, 132, 0.15); }
.penguin-item.points-2 .penguin-points { color: #4fc3f7; background: rgba(79, 195, 247, 0.15); }
.penguin-item.points-3 .penguin-points { color: #ffb74d; background: rgba(255, 183, 77, 0.15); }

/* =============================================================================
   ACTION BUTTONS (FETCH, CLEAR, WIKI)
   ============================================================================= */

.penguins-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Fetch Button */
.fetch-wiki-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1)) !important;
    border: 1px solid rgba(255, 152, 0, 0.4) !important;
    border-radius: 6px;
    color: #ffb74d !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fetch-wiki-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 152, 0, 0.15)) !important;
    border-color: #ff9800 !important;
    color: #ff9800 !important;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
}

.fetch-wiki-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fetch-wiki-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Clear Button */
.clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.15), rgba(100, 100, 100, 0.05)) !important;
    border: 1px solid #444 !important;
    border-radius: 6px;
    color: #888 !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.clear-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1)) !important;
    border-color: rgba(231, 76, 60, 0.6) !important;
    color: #e74c3c !important;
}

.clear-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Wiki Link Small */
.wiki-link-small {
    font-size: 0.75rem;
    color: #888 !important;
    text-decoration: none;
    padding: 3px 8px;
    background: rgba(100, 100, 100, 0.1) !important;
    border-radius: 4px;
    border: 1px solid #444 !important;
    transition: all 0.2s;
}

.wiki-link-small:hover {
    color: #ff9800 !important;
    border-color: rgba(255, 152, 0, 0.5) !important;
    background: rgba(255, 152, 0, 0.1) !important;
}

/* Spinner for fetch button */
.fetch-wiki-btn .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}