/* System Actions Styles - Windows-like Effects */

/* Base Overlay Styles */
.system-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-overlay.active {
    opacity: 1;
}

/* System Dialog Base */
.system-dialog {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 40px;
    min-width: 400px;
    max-width: 500px;
    text-align: center;
    border: 2px solid rgba(0, 209, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 209, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.system-overlay.active .system-dialog {
    transform: scale(1);
}

/* System Icons */
.system-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.system-icon.completed {
    color: #00ff88;
    animation: checkmark 0.5s ease;
}

.system-icon.restarting {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes checkmark {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dialog Headers */
.system-dialog h2 {
    color: #00d1ff;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.system-dialog p {
    color: #e0e0e0;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 209, 255, 0.2);
    border-top: 4px solid #00d1ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* System Buttons */
.system-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.system-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.system-btn:hover {
    background: rgba(0, 209, 255, 0.2);
    border-color: #00d1ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.3);
}

.system-btn.cancel-btn {
    border-color: rgba(255, 77, 141, 0.3);
}

.system-btn.cancel-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    border-color: #ff4d8d;
    box-shadow: 0 5px 15px rgba(255, 77, 141, 0.3);
}

.system-btn.restart-btn {
    border-color: rgba(0, 255, 136, 0.3);
}

.system-btn.restart-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Lock Screen Styles */
.lock-screen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.lock-header {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.current-time {
    font-size: 72px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.current-date {
    font-size: 24px;
    color: #8b949e;
    font-weight: 300;
}

.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d1ff, #ff4d8d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.4);
}

.avatar-circle-large {
    font-size: 64px;
    color: white;
}

.user-name-large {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.lock-message {
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 30px;
}

.unlock-area {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.unlock-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 209, 255, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 16px;
    width: 300px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.unlock-input:focus {
    border-color: #00d1ff;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.unlock-input::placeholder {
    color: #8b949e;
}

.unlock-btn {
    background: linear-gradient(45deg, #00d1ff, #ff4d8d);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.3);
}

.unlock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 209, 255, 0.5);
}

.lock-hint {
    font-size: 14px;
    color: #58a6ff;
    font-style: italic;
}

.lock-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.emergency-btn {
    background: rgba(255, 77, 141, 0.1);
    border: 1px solid rgba(255, 77, 141, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: #ff4d8d;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    transform: translateY(-2px);
}

/* Account Dialog Styles */
.account-dialog {
    max-width: 600px;
    padding: 0;
    text-align: left;
}

.dialog-header {
    background: linear-gradient(135deg, #00d1ff, #ff4d8d);
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h2 {
    margin: 0;
    color: white;
    text-shadow: none;
}

.close-dialog-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-dialog-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.account-content {
    padding: 30px;
}

.account-profile {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 209, 255, 0.2);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d1ff, #ff4d8d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    color: #00d1ff;
    font-size: 24px;
}

.profile-info p {
    margin: 0 0 10px 0;
    color: #8b949e;
    font-size: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    color: #00ff88;
    font-weight: 500;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 209, 255, 0.1);
}

.stat-label {
    display: block;
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #00d1ff;
    font-size: 18px;
    font-weight: 600;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.account-link:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: #00d1ff;
    transform: translateX(5px);
}

/* Lock Screen Unlock Animation */
.lock-overlay.unlocking {
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .system-dialog {
        min-width: 90vw;
        padding: 30px 20px;
    }
    
    .current-time {
        font-size: 48px;
    }
    
    .current-date {
        font-size: 18px;
    }
    
    .unlock-input {
        width: 250px;
    }
    
    .unlock-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .account-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
}