/* 
   Greeting Card SaaS - 2025 Modern Design System 
   Theme: Futuristic, Glassmorphism, Dark/Premium
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-glow: radial-gradient(circle at 50% -20%, #6366f1, transparent 70%);

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --backdrop-blur: blur(12px);
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Components: Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Form Elements */
.form-group { margin-bottom: 1.5rem; position: relative; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 2rem; }
.nav-link { color: var(--text-muted); font-weight: 500; }
.nav-link:hover { color: white; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Micro-interactions */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-left: auto; margin-right: auto;
}
/ *   U X   R e f i n e m e n t s   * /  
  
 / *   F l a s h   A l e r t s   * /  
 . a l e r t   {  
         p a d d i n g :   1 r e m ;  
         b o r d e r - r a d i u s :   1 2 p x ;  
         m a r g i n - b o t t o m :   2 r e m ;  
         c o l o r :   # f f f ;  
         a n i m a t i o n :   f a d e I n U p   0 . 5 s   e a s e - o u t ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
         f o n t - w e i g h t :   5 0 0 ;  
 }  
  
 . a l e r t - e r r o r   {  
         b a c k g r o u n d :   r g b a ( 2 2 0 ,   3 8 ,   3 8 ,   0 . 2 ) ;  
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 2 0 ,   3 8 ,   3 8 ,   0 . 4 ) ;  
         c o l o r :   # f c a 5 a 5 ;  
 }  
  
 . a l e r t - s u c c e s s   {  
         b a c k g r o u n d :   r g b a ( 2 2 ,   1 6 3 ,   7 4 ,   0 . 2 ) ;  
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 2 ,   1 6 3 ,   7 4 ,   0 . 4 ) ;  
         c o l o r :   # 8 6 e f a c ;  
 }  
  
 / *   C a n c e l   B u t t o n   ( C i r c u l a r )   * /  
 . b t n - c i r c l e   {  
         w i d t h :   5 0 p x ;  
         h e i g h t :   5 0 p x ;  
         p a d d i n g :   0 ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         f l e x - s h r i n k :   0 ;  
         f o n t - s i z e :   1 . 5 r e m ;  
         l i n e - h e i g h t :   1 ;  
 }  
  
 / *   L o a d i n g   S t a t e   * /  
 . b t n . l o a d i n g   {  
         p o s i t i o n :   r e l a t i v e ;  
         c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ;  
         p o i n t e r - e v e n t s :   n o n e ;  
 }  
  
 . b t n . l o a d i n g : : a f t e r   {  
         c o n t e n t :   " " ;  
         p o s i t i o n :   a b s o l u t e ;  
         w i d t h :   2 0 p x ;  
         h e i g h t :   2 0 p x ;  
         t o p :   5 0 % ;  
         l e f t :   5 0 % ;  
         m a r g i n :   - 1 0 p x   0   0   - 1 0 p x ;  
         b o r d e r :   3 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 3 ) ;  
         b o r d e r - t o p - c o l o r :   w h i t e ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         a n i m a t i o n :   s p i n   0 . 8 s   l i n e a r   i n f i n i t e ;  
 }  
  
 @ k e y f r a m e s   s p i n   {  
         t o   {  
                 t r a n s f o r m :   r o t a t e ( 3 6 0 d e g ) ;  
         }  
 }  
 
/* Responsive Design */
@media (max-width: 768px) {
    .container { width: 95%; }
    .navbar { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .navbar > div { width: 100%; justify-content: space-between; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sidebar { 
        border-right: none; border-bottom: 1px solid var(--glass-border); 
        padding-right: 0; padding-bottom: 1rem; 
        display: flex; gap: 0.5rem; overflow-x: auto; white-space: nowrap; 
    }
    .sidebar-link { margin-bottom: 0; padding: 0.5rem 1rem; font-size: 0.9rem; border: 1px solid var(--glass-border); }
    .sidebar-link.active { background: var(--primary); border-color: var(--primary); }
    .glass-card table { display: block; overflow-x: auto; white-space: nowrap; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }
    main > div:first-child { flex-direction: column; align-items: flex-start; gap: 1rem; }
    main > div:first-child .btn { width: 100%; text-align: center; }
}
