/* AssistLynk Global Styles - Based on Logo Colors */

/* CSS Custom Properties (Variables) */
:root {
    /* Logo Colors - Exact from brand */
    --primary-purple: #311955;
    --accent-magenta: #AF469A;
    
    /* Cream & Light Background Palette */
    --bg-cream: #FFF9F0;
    --bg-white: #FFFFFF;
    --bg-light-cream: #FFF5E8;
    --bg-pale-purple: #F8F4FB;
    
    /* Text Colors */
    --text-primary: #311955;
    --text-secondary: #5A4464;
    --text-light: #8B7A93;
    
    /* Accent & Interactive */
    --accent-primary: #AF469A;
    --accent-hover: #8F2A72;
    --accent-light: #E8C5E0;
    
    /* Borders & Shadows */
    --border-color: #E8DDE8;
    --shadow-sm: 0 2px 8px rgba(49, 25, 85, 0.08);
    --shadow-md: 0 4px 16px rgba(49, 25, 85, 0.12);
    --shadow-lg: 0 8px 24px rgba(49, 25, 85, 0.16);
    
    /* Typography */
    --font-family: 'Poppins', 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Borders - Round Corners for Everything */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Success, Error, Warning, Info */
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-pale-purple) 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== BUTTONS (BEAUTIFUL & ROUND) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md); /* ROUND CORNERS */
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent-magenta) 0%, var(--accent-hover) 100%);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    color: var(--primary-purple);
    background: white;
    border: 2px solid var(--primary-purple);
    border-radius: var(--radius-md); /* ROUND CORNERS */
}

.btn-secondary:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-md); /* ROUND CORNERS */
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-pale-purple);
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
    transform: scale(1.05);
}

/* Brand Accent */
.brand-accent {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.5rem;
}

/* ===== FORMS (BEAUTIFUL & ROUND) ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: var(--font-medium);
    font-size: var(--font-sm);
}

.form-input,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-base);
    font-family: var(--font-family);
    color: var(--text-primary);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md); /* ROUND CORNERS */
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(175, 70, 154, 0.1);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

.form-error {
    color: var(--error);
    font-size: var(--font-sm);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== CARDS (BEAUTIFUL & ROUND) ===== */
.card {
    background: white;
    border-radius: var(--radius-lg); /* ROUND CORNERS */
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

/* ===== MODALS (BEAUTIFUL & ROUND) ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(49, 25, 85, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl); /* ROUND CORNERS */
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-md); /* ROUND CORNERS */
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-pale-purple);
    color: var(--primary-purple);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes messagePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    70% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth fade class */
.smooth-fade {
    animation: fadeIn 0.3s ease-in-out;
}

