/* ==========================================
   Country Geek Updates - Technical Interface
   Clean, tight, techie design
   ========================================== */

body {
    background: #1a1a2e !important;
    color: #eee;
    font-family: 'Courier New', monospace;
}

/* Drop Zone Styling */
.drop-zone {
    border: 2px dashed #0f3460;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    background: #1a1a2e;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #e94560;
    background: #16213e;
}

.drop-zone.drag-over {
    border-color: #e94560;
    background: #16213e;
    transform: scale(1.02);
}

/* Files List */
.files-list {
    margin-top: 20px;
    padding: 20px;
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: #1a1a2e;
    border-left: 3px solid #0f3460;
    border-radius: 4px;
}

.file-item:hover {
    border-left-color: #e94560;
}

.file-name {
    color: #eee;
    font-weight: bold;
}

.file-size {
    color: #999;
    font-size: 0.85em;
    margin-left: 15px;
}

.file-remove {
    color: #e94560;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
}

.file-remove:hover {
    background: #e94560;
    color: white;
    border-radius: 4px;
}

/* Queue Items */
.queue-item {
    background: #1a1a2e;
    border-left: 4px solid #0f3460;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.queue-item:hover {
    border-left-color: #e94560;
    transform: translateX(5px);
}

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

.queue-device, .queue-program {
    color: #eee;
    margin-right: 20px;
    font-weight: bold;
}

.queue-status {
    padding: 5px 12px;
    border-radius: 4px;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
}

.queue-details {
    color: #999;
    margin: 10px 0;
}

.queue-version {
    font-family: 'Courier New', monospace;
    color: #4169e1;
    margin-bottom: 5px;
}

.queue-time {
    font-size: 0.85em;
}

.queue-actions {
    margin-top: 10px;
    text-align: right;
}

/* Stats Cards */
.stat-card {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 3em;
    font-weight: bold;
    color: white;
    font-family: 'Courier New', monospace;
}

.stat-label {
    margin-top: 10px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Program Breakdown */
.program-breakdown {
    padding: 20px;
}

.program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #1a1a2e;
    border-left: 4px solid #4169e1;
    border-radius: 4px;
    transition: all 0.2s;
}

.program-item:hover {
    border-left-color: #e94560;
    transform: translateX(5px);
}

.program-name {
    color: #eee;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.program-count {
    color: #4169e1;
    font-weight: bold;
}

/* History Table */
.history-table {
    background: #1a1a2e !important;
    border: 1px solid #0f3460 !important;
}

.history-table th {
    color: white !important;
    font-weight: bold;
    padding: 12px !important;
}

.history-table td {
    color: #eee !important;
    padding: 10px !important;
    border-bottom: 1px solid #0f3460 !important;
}

.history-table tr:hover td {
    background: #16213e !important;
}

/* Buttons */
.w3-button {
    transition: all 0.3s ease;
}

.w3-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Inputs and Selects */
.w3-input, .w3-select {
    transition: all 0.3s ease;
}

.w3-input:focus, .w3-select:focus {
    border-color: #e94560 !important;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #0f3460;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e94560;
}

/* Chevron Animation */
#historyChevron {
    transition: transform 0.3s ease;
}

#historyChevron.rotated {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .queue-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .queue-device, .queue-program {
        margin-bottom: 10px;
    }
    
    .stat-value {
        font-size: 2em;
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #0f3460;
    border-top: 4px solid #e94560;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #16213e;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid #e94560;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left-color: #2e8b57;
}

.toast-error {
    border-left-color: #e94560;
}

.toast-info {
    border-left-color: #4169e1;
}