html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    background: #f8fafc;
    color: #1f2937;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

.app-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.app-nav-links .nav-link {
    color: #1f2937 !important;
    font-weight: 500;
    margin-right: 0.35rem;
}

    .app-nav-links .nav-link:hover {
        color: #000 !important;
    }

.app-page {
    min-height: calc(100vh - 140px);
}

.app-footer {
    background: #ffffff;
}

.footer-link {
    color: #1f2937;
    font-weight: 500;
}

.admin-badge {
    font-weight: 600;
    color: #111827 !important;
}

.hero-section {
    padding: 3rem 0 2rem;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.hero-badge {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: #111827;
}

.hero-subtitle {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4b5563;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-spacing {
    padding: 2rem 0 1rem;
}

.section-light {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-header h2 {
        font-size: 2rem;
        font-weight: 800;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        color: #6b7280;
        font-size: 1.05rem;
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    }

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}

.feature-card p {
    color: #4b5563;
    min-height: 88px;
    line-height: 1.7;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.workflow-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
}

.workflow-step {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.workflow-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.workflow-card p {
    color: #4b5563;
    line-height: 1.7;
}

.overview-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.overview-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overview-content p {
    color: #4b5563;
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: #111827;
    color: white;
    border-radius: 18px;
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.table {
    background: #fff;
}

    .table thead th {
        vertical-align: middle;
    }

.btn-dark {
    border-radius: 12px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn-outline-dark {
    border-radius: 12px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.card {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

.form-control,
.form-select {
    border-radius: 12px;
}

.alert {
    border-radius: 14px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .feature-grid,
    .workflow-grid,
    .overview-card {
        grid-template-columns: 1fr;
    }

    .overview-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-card {
        padding: 2.5rem 1.25rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }
}
