/*
  Willow SaaS - Global Stylesheet
  
  Contains all custom CSS for the application, organizing styles by component
  (Layout, Cards, Forms, Typography) and theme support.
  
  Overrides and extends basic Bootstrap/Tailwind defaults where applicable.
*/
:root {
    
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;

    --primary-color: var(--google-blue);
    --primary-hover: #3367D6;

    
    --bg-body: #FFFFFF;
    --bg-surface: #FFFFFF;
    --text-main: #202124;
    
    --text-muted: #5F6368;
    
    --border-color: #DADCE0;
    

    
    --container-width: 1200px;
    --header-height: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    

    
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 4px 6px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 8px 12px 6px rgba(60, 64, 67, 0.15), 0 4px 4px 0 rgba(60, 64, 67, 0.3);

    
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-blur: 10px;
}

@media (prefers-color-scheme: dark) {
    
}





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

body {
    font-family: 'Google Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 400;
    
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.75rem;
    font-weight: 500;
}

h2 {
    font-size: 2.25rem;
    font-weight: 500;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

.fw-bold {
    font-weight: 500 !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}


.app-header {
    background: var(--bg-surface);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--google-blue);
    
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-decoration: none;
}


.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(66, 133, 244, 0.04);
    
    border-color: var(--border-color);
    text-decoration: none;
}



.card,
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    backdrop-filter: none;
    
}


.card::before,
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    opacity: 0.8;
    
    transition: opacity 0.3s ease;
}


.card:hover,
.glass-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #d2d2d2;
}


.checkbox-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.checkbox-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--google-blue);
}


.border-primary {
    border-color: var(--google-blue) !important;
}

.text-primary {
    color: var(--google-blue) !important;
}

.bg-primary {
    background-color: var(--google-blue) !important;
}

.bg-surface {
    background-color: var(--bg-surface) !important;
}

.btn-outline-primary {
    color: var(--google-blue);
    border-color: var(--google-blue);
}



.form-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-surface);
    
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--google-blue);
    box-shadow: none;
    
    border-width: 2px;
    padding: 9px 11px;
    
    outline: none;
}


.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}


.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


.hero-gradient-text {
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}


.progress {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--google-blue);
}


.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
    text-align: center;
}


.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--google-blue);
    animation: slideIn 0.3s ease-out;
}

.flash.error {
    border-left-color: var(--google-red);
}

.flash.success {
    border-left-color: var(--google-green);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}