:root {
    /* Ocean Blue Theme - Premium Palette */
    --primary-color: #0066cc;
    --primary-light: #3388ff;
    --primary-dark: #004c99;
    --accent-color: #00d2ff;
    
    /* Backgrounds */
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Layout */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Dynamic Design */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    animation: float 8s ease-in-out infinite;
}
.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
    100% { transform: translate(0, 0); }
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: 1;
    position: relative;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* Header */
.app-header {
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
}
.logo-area h1 {
    font-weight: 700;
    letter-spacing: 1px;
}

.time-display {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.date-display {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section-card {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
}

.section-card.hidden {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}
.section-header h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}
.section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-field label {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.input-wrapper select option {
    background: var(--bg-dark);
    color: white;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--accent-color);
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    color: white;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.btn-success {
    background: linear-gradient(to right, var(--success), #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(to right, var(--warning), #fbbf24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.btn-large {
    padding: 20px;
    font-size: 1.2rem;
    border-radius: var(--radius-lg);
    flex: 1;
    flex-direction: column;
    gap: 10px;
}
.btn-large i {
    font-size: 2rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Profile Summary */
.profile-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.profile-summary .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.profile-summary .info {
    flex: 1;
}
.profile-summary .info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.profile-summary .info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: pulse 1.5s infinite;
}
.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}
.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

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

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--accent-color);
}
.loading-overlay.hidden {
    display: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 210, 255, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 300;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.error {
    background: var(--danger);
}
.toast.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}
