/* VEY X IDV DASHBOARD - LITE STYLES */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --accent-primary: #0fcc45;
    --accent-secondary: #9c27b0;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #00ff88;
    --error: #ff4444;
    --warning: #ffaa00;
    --info: #00a8ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    padding: 10px;
}

/* Time Indicator */
.time-indicator {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.sync-status i {
    font-size: 0.5rem;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title .icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.dashboard-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-indicator {
    background: rgba(255, 170, 0, 0.15);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.status-indicator.online .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-indicator.offline .status-dot {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.status-indicator.ingame .status-dot {
    background: var(--info);
    box-shadow: 0 0 10px var(--info);
    animation: pulse 2s infinite;
}

/* Buttons */
.btn-refresh, .btn-sync, .btn-join, .btn-copy {
    background: linear-gradient(135deg, var(--accent-primary), #0db83d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(15, 204, 69, 0.3);
}

.btn-refresh:hover, .btn-sync:hover, .btn-join:hover, .btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 204, 69, 0.4);
}

.btn-refresh:active, .btn-sync:active, .btn-join:active, .btn-copy:active {
    transform: translateY(0);
}

.btn-sync {
    background: linear-gradient(135deg, var(--accent-secondary), #7b1fa2);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-join {
    background: linear-gradient(135deg, var(--info), #0097e6);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-copy {
    background: linear-gradient(135deg, #607d8b, #455a64);
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.3);
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(15, 204, 69, 0.3);
}

.avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.avatar-status.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.avatar-status.ingame {
    background: var(--info);
    box-shadow: 0 0 10px var(--info);
}

.profile-info h2 {
    font-size: 1.9rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(156, 39, 176, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(156, 39, 176, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Playtime Section */
.playtime-section, .tier-section, .game-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.playtime-section {
    border-left: 5px solid var(--accent-secondary);
}

.tier-section {
    border-left: 5px solid var(--warning);
}

.game-info {
    border-left: 5px solid var(--info);
}

.playtime-header, .tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.playtime-header h3, .tier-header h3, .game-info h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.playtime-header h3 i {
    color: var(--accent-secondary);
}

.tier-header h3 i {
    color: var(--warning);
}

.game-info h3 i {
    color: var(--info);
}

.playtime-status {
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    background: rgba(156, 39, 176, 0.15);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.tier-current {
    padding: 8px 16px;
    background: rgba(255, 170, 0, 0.15);
    border-radius: 15px;
    color: var(--warning);
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

/* Playtime Display */
.playtime-display {
    margin-bottom: 25px;
}

.playtime-main {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.playtime-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Courier New', 'Monaco', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.playtime-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.playtime-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.playtime-stat {
    text-align: center;
    min-width: 100px;
}

.playtime-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Courier New', 'Monaco', monospace;
    color: var(--text-primary);
}

.playtime-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Sync Info */
.sync-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sync-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sync-item i {
    color: var(--accent-secondary);
}

/* Tier Progress */
.tier-progress {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

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

.progress-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-percentage {
    font-size: 1.1rem;
    color: var(--warning);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), #ffcc44);
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Game Info */
.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}

.game-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.game-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-join {
    justify-self: end;
    padding: 12px 25px;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

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

.update-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.separator {
    opacity: 0.5;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-link {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Device Info */
.device-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.device-card, .device-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.device-card h3, .device-stats h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-stats h3 {
    color: var(--info);
}

.device-id-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', 'Monaco', monospace;
    word-break: break-all;
    margin-bottom: 20px;
    color: var(--accent-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.btn-copy {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

.stats-grid-device {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.device-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.device-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.device-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.device-stat .stat-value {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

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

.loading {
    animation: pulse 1.5s infinite;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-indicator {
        position: static;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .container {
        padding: 5px;
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .header-controls {
        justify-content: space-between;
    }
    
    .dashboard-title {
        justify-content: center;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h2 {
        font-size: 1.7rem;
    }
    
    .playtime-value {
        font-size: 2.8rem;
    }
    
    .playtime-stats {
        gap: 25px;
    }
    
    .playtime-stat .stat-value {
        font-size: 1.7rem;
    }
    
    .playtime-stat {
        min-width: 80px;
    }
    
    .sync-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-sync {
        width: 100%;
        justify-content: center;
    }
    
    .game-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .btn-join {
        justify-self: center;
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .playtime-value {
        font-size: 2.2rem;
    }
    
    .playtime-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .playtime-stat {
        min-width: auto;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid-device {
        grid-template-columns: 1fr;
    }
}