/* Base styles from UI.html */
:root {
    --primary: #3b82f6;
    --bg: #0f172a;
    --card-bg: #1e293b; /* approximate slate-800/900 from tailwind */
}

body {
    background-color: var(--bg);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.device-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.device-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Dialog Styles (Adapted for Dark Theme) */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

.dialog-content {
    background-color: #1e293b; /* Slate 800 */
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: white;
}

.dialog-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.dialog-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
}
.btn.primary:hover {
    background-color: #2563eb;
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.file-name {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    word-break: break-all;
    margin: 10px 0;
    color: #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* Toast/Notification (if any) */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

.scanning-pulse {
    color: #94a3b8;
    animation: pulse 2s infinite;
    text-align: center;
    padding: 20px;
    font-size: 0.875rem;
}
