@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6C5DD3;
    --primary-hover: #5b4cc4;
    --secondary-color: #00f2fe;
    --background-color: #F7F8FC;
    --text-main: #1F2D3D;
    --text-muted: #8F9BB3;
    --card-bg: #FFFFFF;
    --border-color: #E4E9F2;
    --error-color: #FF3D71;
    --success-color: #00E096;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --gradient-hero: linear-gradient(135deg, #6C5DD3 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Hero Section (Index) */
.hero {
    padding: 100px 20px 120px;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 60px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards & Containers */
.shortener-box,
.seo-section,
.login-card,
.container-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.shortener-box {
    margin-top: -80px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.seo-section {
    margin-top: 60px;
}

.login-card {
    max-width: 450px;
    margin: 80px auto;
}

/* Forms */
.form-control {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.15);
}

.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary,
.btn-custom {
    background: var(--primary-color);
    border: none;
    color: white;
}

.btn-primary:hover,
.btn-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 93, 211, 0.3);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background-color: #FFF2F2;
    color: var(--error-color);
}

.alert-success {
    background-color: #F0FFF9;
    color: var(--success-color);
}

/* Footer */
footer {
    background: #2B2E4A;
    color: #A0A3BD;
    padding: 60px 0 40px;
    margin-top: 80px;
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
}

/* Navbar overrides */
.navbar-dark .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .nav-link:hover {
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 80px;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .shortener-box,
    .login-card {
        padding: 25px;
    }
}

/* WhatsApp Theme for Redirect Page */
body.wa-theme {
    background-color: #d1d7db;
    /* WA web background gray */
    background-image: none;
    display: block;
    /* Reset flex from main styles */
    padding: 0;
}

.wa-header-strip {
    height: 220px;
    /* Increased height to properly cover the card top */
    background-color: #00a884;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.wa-main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 100px;
    /* Push card down */
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.wa-card {
    background-color: #fff;
    border-radius: 3px;
    /* WA Style is sharp */
    box-shadow: 0 17px 50px 0 rgba(11, 20, 26, .19), 0 12px 15px 0 rgba(11, 20, 26, .24);
    width: 100%;
    max-width: 600px;
    /* Standard width */
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wa-title {
    font-size: 28px;
    font-weight: 300;
    color: #41525d;
    margin-bottom: 20px;
}

.wa-text {
    font-size: 16px;
    color: #8696a0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.wa-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a884;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wa-progress-container {
    background: #e9edef;
    border-radius: 4px;
    height: 6px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
}

.wa-progress-bar {
    background: #00a884;
    height: 100%;
    width: 0%;
    transition: width 1s linear;
}

.wa-footer {
    text-align: center;
    margin-top: 40px;
    color: #8696a0;
    font-size: 14px;
}

.wa-footer a {
    color: #00a884;
    text-decoration: none;
    margin: 0 10px;
}