/* ========== GLOBAL DESIGN SYSTEM ========== */
:root {
    --primary: #2a9d8f;
    --primary-dark: #078d80;
    --primary-light: #10b7a5;
    --secondary: #1d3557;
    --accent: #f77f00;
    --success: #06a77d;
    --warning: #ffd60a;
    --danger: #ef476f;
    --info: #3a96d6;

    --white: #ffffff;
    --light: #f4f4f9;
    --lighter: #f9fbff;
    --gray-100: #f0f0f5;
    --gray-200: #e8e8ee;
    --gray-300: #d8d8e0;
    --gray-400: #b8b8c4;
    --gray-500: #989aa8;
    --gray-600: #6f7379;
    --gray-700: #4a4a4a;
    --gray-800: #2f2f37;
    --gray-900: #1a1a22;

    --text-primary: #1a1a22;
    --text-secondary: #6f7379;
    --text-muted: #989aa8;
    --border-color: #e8e8ee;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Typography */
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}
h2 {
    font-size: 2rem;
    font-weight: 800;
}
h3 {
    font-size: 1.5rem;
    font-weight: 700;
}
h4 {
    font-size: 1.25rem;
    font-weight: 700;
}
h5 {
    font-size: 1.1rem;
    font-weight: 600;
}
h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--lighter);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 2rem;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(6, 167, 125, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 214, 10, 0.1);
    color: #cc9900;
}

.alert-info {
    background: rgba(58, 150, 214, 0.1);
    color: var(--info);
}

/* Badges */
.badge {
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        var(--primary-dark) 100%
    );
    color: white;
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table thead th {
    background: var(--lighter);
    border-color: var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr {
    border-color: var(--border-color);
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--lighter);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Container Utilities */
.container {
    max-width: 1200px;
}

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Spacing Utilities */
.mt-5 {
    margin-top: 3rem !important;
}
.mb-5 {
    margin-bottom: 3rem !important;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }

    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}
