/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #101c58;
    --primary-gradient: linear-gradient(135deg, #101c58 0%, #2F318C 100%);
    --accent-color: #2F318C;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgb(242, 246, 255) 0%, rgb(231, 240, 255) 90%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Layout Containers */
.container {
    padding: 2rem 1rem;
    max-width: 800px; /* Centered narrow focus */
    margin: 0 auto;
}

/* Card Styling */
.card-premium {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Form Styles */
.form-control {
    border: 2px solid #e1e5ee;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
    background-color: #fafbfc;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(47, 49, 140, 0.1);
    background-color: #fff;
    outline: none;
}

.input-group-text {
    border: 2px solid #e1e5ee;
    border-right: none;
    background-color: #f0f2f5;
    color: var(--primary-color);
    border-radius: 12px 0 0 12px;
    font-size: 1.2rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* Buttons */
.btn {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50px;
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 28, 88, 0.2);
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 28, 88, 0.3);
    color: #ffffff;
    background: linear-gradient(135deg, #15236b 0%, #3a3dad 100%);
}

.btn:active {
    transform: translateY(0);
}

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

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

/* Popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.4s ease-out;
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    line-height: 35px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.popup-close:hover {
    transform: scale(1.1);
}

/* Loader */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.shadow-box { box-shadow: var(--shadow-soft); }

/* Footer */
.footer-simple {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: auto;
}