:root {
    --bg-primary: #0f111a;
    --bg-secondary: #1a1d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b8;
    --accent-1: #FF7EB3;
    --accent-2: #FF758C;
    --accent-glow: rgba(255, 126, 179, 0.4);
    --glass-bg: rgba(26, 29, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 126, 179, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(126, 179, 255, 0.08), transparent 25%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.view {
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glow-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

input, select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 20px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px 20px;
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.user-info h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

#progress-text {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Routine Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 0 10px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.section-header .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.routine-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.routine-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.routine-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 126, 179, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.routine-item.completed {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
}

.routine-item.completed .item-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.checkbox {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.routine-item.completed .checkbox {
    background: var(--accent-1);
}

.checkbox::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.routine-item.completed .checkbox::after {
    opacity: 1;
}

.item-content {
    flex-grow: 1;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
}

.video-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.video-link:hover {
    color: var(--accent-1);
}

.action-buttons {
    display: flex;
    gap: 16px;
    padding: 0 10px;
    margin-bottom: 40px;
}

.action-buttons button {
    flex: 1;
}
