/* Console-like appearance for the dashboard */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: #252526;
    border: 1px solid #3e3e42;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

header h1 {
    color: #4ec9b0;
    margin-bottom: 15px;
    font-size: 24px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.status-indicator.connected {
    background: #0e639c;
    color: #ffffff;
}

.status-indicator.connecting {
    background: #d19a66;
    color: #ffffff;
}

.status-indicator.disconnected {
    background: #f48771;
    color: #ffffff;
}

.sync-indicator {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #3e3e42;
    color: #ffffff;
}

.sync-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #858585;
    animation: pulse 2s ease-in-out infinite;
}

.sync-indicator.connected .sync-dot {
    background: #6a9955;
    box-shadow: 0 0 8px #6a9955;
    animation: pulse-green 2s ease-in-out infinite;
}

.sync-indicator.disconnected .sync-dot {
    background: #f48771;
    box-shadow: 0 0 8px #f48771;
    animation: pulse-red 2s ease-in-out infinite;
}

.sync-indicator.waiting .sync-dot {
    background: #d19a66;
    box-shadow: 0 0 8px #d19a66;
    animation: pulse-orange 2s ease-in-out infinite;
}

.sync-indicator.slow .sync-dot {
    background: #d19a66;
    box-shadow: 0 0 8px #d19a66;
    animation: pulse-orange 2s ease-in-out infinite;
}

.sync-text {
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #6a9955;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px #6a9955;
    }
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #f48771;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px #f48771;
    }
}

@keyframes pulse-orange {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #d19a66;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px #d19a66;
    }
}

.remote-indicator {
    color: #858585;
    font-size: 12px;
    font-style: italic;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.presents-section, .console-section {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 20px;
}

.presents-section h2, .console-section h2 {
    color: #4ec9b0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #3e3e42;
    padding-bottom: 10px;
}

.presents-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 3px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    color: #858585;
    font-size: 12px;
    text-transform: uppercase;
}

.summary-value {
    color: #4ec9b0;
    font-size: 24px;
    font-weight: bold;
}

.presents-list {
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

@media (min-width: 1200px) {
    .presents-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .presents-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 899px) {
    .presents-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.present-item {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-left: 4px solid #4ec9b0;
    padding: 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.present-item:hover {
    background: #2d2d30;
    border-left-color: #569cd6;
}

.present-item.high-count {
    border-left-color: #4ec9b0;
    border-left-width: 6px;
}

.present-item.medium-count {
    border-left-color: #569cd6;
    border-left-width: 5px;
}

.present-item.low-count {
    border-left-color: #d19a66;
    border-left-width: 4px;
}

.present-item.discovered {
    border-left-color: #ce9178;
    background: #2a1e1e;
    opacity: 0.9;
}

.present-item.discovered:hover {
    background: #3a2e2e;
    border-left-color: #d19a66;
}

.present-item.new {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background: #4ec9b0;
        border-left-color: #4ec9b0;
    }
    100% {
        background: #1e1e1e;
        border-left-color: #4ec9b0;
    }
}

.present-location {
    margin-bottom: 8px;
    line-height: 1.3;
}

.location-main {
    color: #569cd6;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-sub {
    color: #858585;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.present-count {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.present-count .number {
    color: #4ec9b0;
    font-weight: bold;
    font-size: 28px;
    line-height: 1;
}

.present-found {
    color: #6a9955;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.no-presents {
    color: #858585;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.console {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 3px;
    padding: 15px;
    height: 500px;
    overflow-y: auto;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.console::-webkit-scrollbar {
    width: 10px;
}

.console::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.console::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 5px;
}

.console::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

.console-line {
    margin-bottom: 5px;
    padding: 2px 0;
    word-wrap: break-word;
}

.console-line.timestamp {
    color: #858585;
}

.console-line.event-lost {
    color: #d19a66;
}

.console-line.event-found {
    color: #6a9955;
}

.console-line.event-info {
    color: #569cd6;
}

.console-line.event-error {
    color: #f48771;
}

.console-line .time {
    color: #858585;
    margin-right: 10px;
}

.console-line .player {
    color: #4ec9b0;
    font-weight: bold;
}

.console-line .location {
    color: #569cd6;
}

.console-line .count {
    color: #ce9178;
    font-weight: bold;
}

