/* 
 * assets/css/global-theme.css
 * Unified Premium Design System for AmriStudio
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* ------------------------------
       COLOR PALETTE (Premium Light)
    ------------------------------ */
    --bg-body: #f4f6f9;             /* Soft light gray/blue background */
    --bg-card: #ffffff;             /* Crisp white for cards */
    --bg-glass: rgba(255, 255, 255, 0.85); /* For blur effects */

    --text-primary: #1e293b;        /* Slate 800 - High contrast text */
    --text-secondary: #64748b;      /* Slate 500 - Subtitles/Muted text */
    --text-dark: #0f172a;           /* Headings */
    --text-light: #ffffff;          /* Text on dark backgrounds */

    --accent-primary: #4361ee;      /* Vibrant Indigo for main actions */
    --accent-hover: #3730a3;
    --accent-secondary: #f72585;    /* Vibrant Pink for subtle pops */
    
    /* Info / Status Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* ------------------------------
       BORDERS & SHADOWS
    ------------------------------ */
    --border-light: #e2e8f0;
    --border-focus: #4361ee;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 35px -5px rgba(67, 97, 238, 0.15);
    --shadow-glow: 0 0 15px rgba(67, 97, 238, 0.3);

    /* ------------------------------
       GEOMETRY
    ------------------------------ */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

/* -------------------------------------------------------------
   GLOBAL RESETS
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------------------------------
   COMMON UI COMPONENTS
------------------------------------------------------------- */

/* Containers */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    background: radial-gradient(circle at top right, #e0e7ff 0%, transparent 40%),
                radial-gradient(circle at bottom left, #fce7f3 0%, transparent 40%), var(--bg-body);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8); /* Subtle crisp edge */
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: #e0e7ff; color: var(--accent-primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-light);
    box-shadow: 0 4px 6px -1px rgba(67, 97, 238, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}
.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--text-light);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}
.form-control:focus {
    border-color: var(--accent-primary);
    background: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Headings */
.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .wrapper { padding: 1rem; }
    .page-title { font-size: 1.75rem; }
}
