:root {
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.3);
    --secondary: #10b981;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-large {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover,
.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
}

.gradient-text {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual .glass-card {
    padding: 0;
    width: 450px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.stats-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-item .value {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-item small {
    font-size: 1rem;
    color: var(--primary);
}

/* Upload Section */
.upload-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-box {
    border: 2px dashed var(--glass-border);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Loader */
.loader-container {
    text-align: center;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results Section */
.results-section {
    padding: 5rem 0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    padding: 2rem;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.data-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-day {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.plan-day strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Blob Background Animation */
.blob-background {
    position: relative;
    overflow: hidden;
}

.blob-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Staggered Animations */
.results-grid>* {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.results-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.results-grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.results-grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.results-grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects on Cards */
.card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.hidden {
    display: none;
}

.actions-footer {
    text-align: center;
}

/* Footer */
.main-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }
}/ *   E d i t a b l e   F i e l d s   * / 
 . e d i t a b l e - i n p u t   { 
         b a c k g r o u n d :   t r a n s p a r e n t ; 
         b o r d e r :   1 p x   s o l i d   t r a n s p a r e n t ; 
         c o l o r :   v a r ( - - t e x t - m a i n ) ; 
         f o n t - s i z e :   1 . 1 r e m ; 
         f o n t - w e i g h t :   7 0 0 ; 
         w i d t h :   1 0 0 p x ; 
         t e x t - a l i g n :   r i g h t ; 
         f o n t - f a m i l y :   i n h e r i t ; 
         p a d d i n g :   2 p x   5 p x ; 
         b o r d e r - r a d i u s :   4 p x ; 
         t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . e d i t a b l e - i n p u t : h o v e r ,   . e d i t a b l e - i n p u t : f o c u s   { 
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         o u t l i n e :   n o n e ; 
 } 
 
 . e d i t a b l e - t e x t   { 
         b o r d e r :   1 p x   s o l i d   t r a n s p a r e n t ; 
         p a d d i n g :   2 p x ; 
         b o r d e r - r a d i u s :   4 p x ; 
         t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . e d i t a b l e - t e x t : h o v e r ,   . e d i t a b l e - t e x t : f o c u s   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         b o r d e r - c o l o r :   v a r ( - - g l a s s - b o r d e r ) ; 
         o u t l i n e :   n o n e ; 
 }  
 /* Image Preview Card */
.image-preview-card {
    grid-column: span 2;
}

.image-preview-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
}

.image-preview-container img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .image-preview-card {
        grid-column: span 1;
    }
}
