/* ==================== Modern Green Design - NO GRADIENTS ==================== */

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

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f9fafb;
    --dark-color: #111827;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #ffffff;
    color: var(--text-primary);
}

/* ==================== Navbar Styles ==================== */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--text-primary) !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.brand-text {
    color: var(--dark-color);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-secondary) !important;
    border-radius: 8px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--dark-color) !important;
    background-color: rgba(0, 0, 0, 0.03);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link.active {
    color: var(--dark-color) !important;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link.active::after {
    width: 70%;
}

.btn-nav-login {
    background-color: var(--dark-color) !important;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    border: 2px solid var(--dark-color);
    margin-left: 0.5rem;
}

.btn-nav-login:hover {
    background-color: transparent !important;
    border-color: var(--dark-color);
    color: var(--dark-color) !important;
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
.hero-section-modern {
    background-color: #ffffff;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    animation: fadeInUp 0.8s ease;
    color: var(--dark-color);
}

.hero-stats {
    animation: fadeInUp 1s ease;
}

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

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--text-secondary);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-large {
    font-size: 20rem;
    color: var(--primary-light);
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--dark-color);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================== Section Badges ==================== */
.section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== Info Cards ==================== */
.info-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-color: var(--primary-color);
}

.info-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    background-color: var(--primary-color);
}

/* ==================== About Image ==================== */
.about-image-wrapper {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon-bg {
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon-bg i {
    font-size: 10rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* ==================== Custom List ==================== */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.custom-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ==================== Feature Cards ==================== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.12);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    background-color: var(--primary-color);
}

/* ==================== Process Steps ==================== */
.process-step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    background-color: var(--primary-color);
}

/* ==================== Document Items ==================== */
.document-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.12);
    border-color: var(--primary-color);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* ==================== Accordion ==================== */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background-color: white;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--light-color);
}

/* ==================== CTA Section ==================== */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

.cta-section h2,
.cta-section p {
    color: white;
}

/* ==================== Footer ==================== */
footer {
    margin-top: auto;
    background-color: var(--dark-color);
    color: white;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== Scroll to Top Button ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== Sidebar (Dashboard) ==================== */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Toggle sidebar on mobile */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 250px;
        z-index: 1000;
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

/* Main content area */
main {
    padding-top: 20px;
    margin-top: 56px;
}

/* ==================== Form Validation Styles ==================== */
.form-control {
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* ==================== File Input Preview ==================== */
.file-name-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.file-name-preview:empty {
    display: none;
}

/* Sample button styling */
.sample-btn {
    white-space: nowrap;
}

/* ==================== Card Hover Effect ==================== */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    border-color: var(--primary-color);
}

/* ==================== Custom Button Styles ==================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ==================== Modal Styles ==================== */
.modal-body img {
    max-width: 100%;
    height: auto;
}

.modal-content {
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
}

/* ==================== Alert Animations ==================== */
.alert {
    animation: slideDown 0.3s ease;
    border-radius: 12px;
}

.alert-success {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

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

/* ==================== Loading State ==================== */
.btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 991.98px) {
    .hero-icon-large {
        font-size: 12rem;
    }

    .floating-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .floating-card i {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-icon-large {
        font-size: 8rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    main {
        margin-top: 56px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .floating-card {
        display: none;
    }
}

/* ==================== Smooth Transitions ==================== */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button, a, input, select, textarea {
    transition: all 0.2s ease;
}