/**
 * Walue WhatsApp Website Styles
 */

:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --secondary: #075E54;
    --dark: #1a1a2e;
    --light-bg: #f8fafc;
}

/* General */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
    color: #333;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    font-size: 1.6rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: white;
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 3rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-section .feature-list li {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 0;
}

.hero-section .feature-list i {
    color: var(--primary);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Registration Card in Hero */
.hero-section .card {
    background: white;
    color: #333;
}

.hero-section .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
}

/* Status Icons */
.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.status-icon.bg-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.status-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
}

.status-icon.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

/* Step Numbers */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-number.bg-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

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

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

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

/* Form styling */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.8rem;
    color: #888;
}

.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

/* Code blocks */
.code-block {
    background: var(--dark);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #e9ecef;
}

.code-block .text-warning {
    color: #ffc107 !important;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.toast-notification.toast-info {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(37, 211, 102, 0.1);
    color: var(--secondary);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: #333;
    font-weight: 500;
}

/* Section headings */
h2 {
    font-weight: 700;
    color: var(--dark);
}

h5 {
    font-weight: 600;
}

h6 {
    font-weight: 600;
    color: #555;
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 0;
}

.features-section h2 {
    margin-bottom: 3rem;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--dark) !important;
}

/* Input group */
.input-group .btn {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

/* Font monospace */
.font-monospace {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 12px;
}

/* Link styling */
a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

/* Success icon animation */
.success-icon {
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .input-group {
        flex-wrap: wrap;
    }

    .input-group .form-control {
        margin-bottom: 0.5rem;
        border-radius: 10px !important;
    }

    .input-group .btn {
        border-radius: 10px !important;
        flex: 1;
    }
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: white;
    margin: 0;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}
