:root {
    --primary: #a8f0a8;
    --secondary: #006400;
    --bg-dark: #051405;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #a8f0a8;
    --accent: #2ea043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(to right, #006400 0%, #004d00 100%);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(120deg, #a8f0a8 0%, #2ea043 100%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(to top, #004d00 0%, #a8f0a8 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.1); }
}

/* Layout */
main {
    width: 90%;
    max-width: 400px;
    perspective: 1000px;
}

.hidden {
    display: none !important;
}

.view {
    animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* Onboarding Specific */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="date"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

button {
    background: linear-gradient(to right, #f093fb, #f5576c);
    border: none;
    border-radius: 16px;
    padding: 18px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(245, 87, 108, 0.3);
}

button:active {
    transform: scale(0.98);
}

/* Countdown Grid */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 5px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-value {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    color: #fff;
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-top: 5px;
}

.target-label {
    display: inline-block;
    font-size: 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* Progress Section */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--primary));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.percentage-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-top: 15px;
}

.text-btn {
    background: transparent;
    box-shadow: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 0;
    margin-top: 30px;
    text-decoration: underline;
    opacity: 0.7;
}

.text-btn:hover {
    opacity: 1;
}

.secondary-btn {
    background: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
}

.emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Navodila za namestitev */
.install-instructions {
    margin-top: 30px;
    width: 100%;
}

.instruction-card {
    padding: 25px 20px;
}

.instruction-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.instruction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.instruction-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-item .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.instruction-item h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
}

.instruction-item p {
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.3;
}

footer {
    margin: 40px 0 20px 0;
    text-align: center;
    opacity: 0.5;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    
    .time-value {
        font-size: 1.8rem;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
    }
}
