/* Base Styles - Common across all pages */

/* Simplified neutral color palette */
:root {
    --neutral-50: #FFFFFF;
    --neutral-100: #F9F9F9;
    --neutral-200: #F0F0F0;
    --neutral-300: #E0E0E0;
    --neutral-400: #CCCCCC;
    --neutral-500: #B3B3B3;
    --neutral-600: #808080;
    --neutral-700: #666666;
    --neutral-800: #1a6158;
    --neutral-900: #258276;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px #0000001a;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-start: #1a6158;
    --gradient-end: #258276;
}

/* Typography */
.font-display {
    font-family: 'Montserrat', sans-serif;
}

/* Common button styles */
.btn, .btn-primary, .btn-secondary, .btn-outline {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--neutral-800);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--neutral-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary-sm {
    background-color: var(--neutral-800);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    border: none;
}

.btn-primary-sm:hover {
    background-color: var(--neutral-900);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--neutral-800);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background-color: var(--neutral-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-sm {
    background-color: white;
    color: var(--neutral-800);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid var(--neutral-300);
}

.btn-secondary-sm:hover {
    background-color: var(--neutral-100);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-500);
    color: var(--neutral-800);
}

.btn-outline-sm {
    background-color: transparent;
    border: 1px solid var(--neutral-400);
    color: var(--neutral-700);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-outline-sm:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-500);
    color: var(--neutral-800);
}

/* Common form input styles */
.form-input {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--neutral-300);
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--neutral-400);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
}

/* Common card styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.section-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

/* Common section styles */
.section {
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.section-subtitle {
    margin-top: 0.5rem;
    color: var(--neutral-600);
}

/* Status badges */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.badge-warning {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.badge-danger {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

/* Tags and badges */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.tag-secondary {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.tag-accent {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

/* Feature cards */
.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background-color: var(--neutral-50);
}

/* Animations and transitions */
.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

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

/* Page background */
body {
    background-color: var(--neutral-50);
}

/* Mobile overflow fixes */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent any element from causing horizontal scroll */
    .container, .max-w-7xl, .max-w-screen-2xl, .max-w-screen-xl {
        max-width: 100vw !important;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure flex containers don't overflow */
    .flex-1 {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix main content container - ensure it never exceeds viewport */
    .flex.flex-col.md\\:flex-row.min-h-screen > .flex-1 {
        max-width: 100vw !important;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Override Tailwind's max-width classes on mobile */
    .sm\\:max-w-7xl {
        max-width: 100vw !important;
    }
    
    /* Fix Tailwind utility classes that might cause overflow */
    .px-4, .px-6, .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix text overflow */
    h1, h2, h3, h4, h5, h6, p, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Hero section */
.hero-section {
    background: white;
    position: relative;
}
