/* ====================================
   GLOBAL STYLES - Modern Minimalist
   ==================================== */

:root {
    /* Brown & Brown Branding */
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --bg: #FFFFFF;
    --bg-light: #F7F2EA;
    --bg-lighter: #EFEBE5;
    --text: #000000;
    --text-light: #7D7B77;
    --border: #E6E2DC;
    --accent-cream: #EFEBE5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-lighter);
    color: var(--text);
    line-height: 1.6;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ====================================
   HEADER
   ==================================== */

.header {
    background: var(--bg-lighter);
    color: var(--text);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.header-content p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ====================================
   TABS NAVIGATION
   ==================================== */

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ====================================
   TABS CONTENT
   ==================================== */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ====================================
   TOOL WRAPPER
   ==================================== */

.tool-wrapper {
    background: var(--bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tool-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ====================================
   INPUTS & FORMS
   ==================================== */

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.input-field::placeholder {
    color: var(--text-light);
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    padding: 0.75rem 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-lighter);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================
   LOADING SPINNER
   ==================================== */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem 0;
}

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

/* ====================================
   RESULTS SECTION
   ==================================== */

.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.result-card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.result-card.success {
    border-left-color: var(--success);
}

.result-card.warning {
    border-left-color: var(--warning);
}

.result-card.error {
    border-left-color: var(--error);
}

.result-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .tool-wrapper {
        padding: 1.5rem;
    }

    .tabs-nav {
        gap: 0;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-btn svg {
        width: 18px;
        height: 18px;
    }

    .result-score {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-bar {
        width: 100%;
        margin: 1rem 0 0 0;
    }
}