/* Ambarsis UI Module Styles */

:root {
    --primary-color: #0d6efd;
    --primary-purple: #7239EA;
    --hero-gradient-start: #667eea;
    --hero-gradient-end: #764ba2;
    --warning-yellow: #FFC700;
    --warning-yellow-end: #F59E0B;
    --success-green: #50CD89;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --gray-900: #1f2937;
    --gray-600: #4b5563;
}

/* Global Styles */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* ===== Logo Styles ===== */
.ambarsis-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.navbar-logo-icon {
    width: 32px;
    height: 32px;
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: white;
    min-height: 85vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, var(--warning-yellow-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--warning-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Hero Buttons */
.hero-btn-primary {
    background: white;
    color: var(--hero-gradient-end);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--hero-gradient-end);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.feature-icon-primary {
    background: rgba(114, 57, 234, 0.1);
    color: var(--primary-purple);
}

.feature-icon-warning {
    background: rgba(255, 199, 0, 0.15);
    color: var(--warning-yellow-end);
}

.feature-icon-success {
    background: rgba(80, 205, 137, 0.15);
    color: var(--success-green);
}

.feature-icon-info {
    background: rgba(13, 202, 240, 0.15);
    color: var(--info-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== How It Works Section (Steps) ===== */
.steps-section {
    padding: 100px 0;
    background: white;
}

.step {
    position: relative;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(114, 57, 234, 0.1);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.25rem;
}

.step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--hero-gradient-start), var(--hero-gradient-end));
    opacity: 0.3;
}

.step:last-child .step-connector {
    display: none;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: var(--hero-gradient-end);
    border: none;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--hero-gradient-end);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%) !important;
    padding: 12px 0;
}

.navbar-brand svg {
    vertical-align: middle;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Login Page */
.login-container {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container .card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-container .card-body {
    padding: 3rem !important;
}

.login-container .form-control {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.login-container .form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(114, 57, 234, 0.15);
}

.login-container .btn-primary {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(114, 57, 234, 0.1);
    color: var(--primary-purple);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

/* Buttons */
.btn-lg {
    font-size: 1.1rem;
    padding: 14px 28px;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .step-connector {
        display: none;
    }

    .cta-card {
        padding: 48px 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.75rem;
    }

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

    .features-section,
    .steps-section,
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .step {
        margin-bottom: 40px;
    }
}

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

    .hero-section {
        padding: 40px 0;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .login-container .card-body {
        padding: 2rem !important;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}
