:root {
    --primary-color: #4368E8;  /* Bright blue */
    --primary-light: #E8F0FE;  /* Light blue background */
    --secondary-color: #00C1D4; /* Teal accent */
    --accent-color: #FF6B6B;   /* Coral accent */
    --success-color: #34D399;  /* Mint green */
    --dark-color: #1E293B;     /* Dark slate */
    --light-color: #F8FAFC;    /* Lightest blue-gray */
    --text-color: #1E293B;     /* Dark slate for text */
    --text-muted: #64748B;     /* Muted slate */
    --gradient-1: linear-gradient(135deg, #4368E8 0%, #00C1D4 100%);
    --gradient-2: linear-gradient(135deg, #00C1D4 0%, #FF6B6B 100%);
    --gradient-hero: linear-gradient(135deg, #E8F0FE 0%, #F0F9FF 100%);
    --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--text-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-bottom: 40px;
    border-radius: 10px;
    position: relative;
}

.app-header-edit-btn {
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(67, 104, 232, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 104, 232, 0.4);
    background-position: right center;
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-warning {
    background: var(--gradient-2);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(67, 104, 232, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-warning:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 104, 232, 0.4);
    background-position: right center;
}

.btn-warning:hover:before {
    opacity: 1;
}

.btn-outline-warning {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-warning:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDQwIDQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIHNjYWxlKDAuNSkiPjxyZWN0IGlkPSJwYXR0ZXJuLWJnIiB3aWR0aD0iNDAwJSIgaGVpZ2h0PSI0MDAlIiBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4wNSkiPjwvcmVjdD4gPGNpcmNsZSBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4xKSIgY3g9IjIwIiBjeT0iMjAiIHI9IjEiPjwvY2lyY2xlPiA8Y2lyY2xlIGZpbGw9InJnYmEoMTA4LCA5OSwgMjU0LCAwLjEpIiBjeD0iNDAiIGN5PSI0MCIgcj0iMSI+PC9jaXJjbGU+IDxjaXJjbGUgZmlsbD0icmdiYSgxMDgsIDk5LCAyNTQsIDAuMSkiIGN4PSIwIiBjeT0iNDAiIHI9IjEiPjwvY2lyY2xlPiA8Y2lyY2xlIGZpbGw9InJnYmEoMTA4LCA5OSwgMjU0LCAwLjEpIiBjeD0iNDAiIGN5PSIwIiByPSIxIj48L2NpcmNsZT4gPGNpcmNsZSBmaWxsPSJyZ2JhKDEwOCwgOTksIDI1NCwgMC4xKSIgY3g9IjAiIGN5PSIwIiByPSIxIj48L2NpcmNsZT4gPC9wYXR0ZXJuPiA8L2RlZnM+IDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiPjwvcmVjdD48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 104, 232, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 36px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
    color: white;
    box-shadow: 0 15px 35px rgba(67, 104, 232, 0.2);
}

.feature-card:hover .feature-icon:before {
    opacity: 1;
}

.feature-card:hover .feature-icon i {
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-section {
    padding: 100px 0;
}

.testimonial-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(67, 104, 232, 0.08);
    margin: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:before {
    content: '';
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.login-illustration {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-illustration h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.login-illustration p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.login-illustration img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
}

.login-form {
    flex: 1;
    min-width: 300px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.login-form p {
    color: #6c757d;
    margin-bottom: 30px;
}

.form-control {
    height: 50px;
    border-radius: 8px;
    padding: 0 15px;
    border: 1px solid #e1e5ee;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    height: 50px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #6c757d;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider:not(:empty)::before {
    margin-right: 1em;
}

.divider:not(:empty)::after {
    margin-left: 1em;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e1e5ee;
    color: #495057;
    height: 50px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.google-btn {
    background: #fff;
    border-color: #e1e5ee;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.facebook-btn {
    background: #1877f2;
    color: white;
    border: none;
}

.facebook-btn:hover {
    background: #166fe5;
    color: white;
}

.microsoft-btn {
    background: #fff;
    border: 1px solid #e1e5ee;
}

.microsoft-btn:hover {
    background: #f8f9fa;
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

.create-account {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.create-account a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.create-account a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .login-illustration {
        display: none;
    }
    
    .login-form {
        padding: 40px 20px;
    }
}

/* Question Panel */
.question-panel {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.question-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

.question-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Options */
.options-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.option-item {
    margin-bottom: 15px;
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
}

.option-label {
    display: block;
    padding: 15px 20px 15px 55px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-input:checked + .option-label {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-input:checked + .option-label::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

table.table_border, .table_border td, .table_border th {
  border: 1px solid;
}

.table_border td, .display_table th {
  padding: 5px;
}

table.table_border {
  width: 100%;
  border-collapse: collapse;
}

/* Search and Filter */
.search-filter {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 45px;
    border-radius: 8px;
    border: 1px solid #e1e5ee;
    height: 50px;
    width: 100%;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 180px;
}

.error-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.error-container {
    max-width: 600px;
}

.error-code {
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.error-message {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}