@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('./root-variables.css');

body {
    font-family: var(--body-font);
    background: var(--light-bg, #f9fafb);
    color: var(--text-color, #1f2937);
    margin: 0;
    line-height: var(--body-line-height, 1.5);
}

.container {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 55vh;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    letter-spacing: var(--heading-letter-spacing);
}

.header h1 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.header p {
    font-size: 1rem;
    color: var(--light-text, #6b7280);
    margin: 0;
}

.main-content {
    background: var(--background-color, #ffffff);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.main-content:hover {
    box-shadow: var(--shadow-hover);
}

.input-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color, #1f2937);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--button-border-radius);
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--text-color, #1f2937);
    transition: var(--transition);
    font-family: var(--body-font);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.generate-btn,
.copy-btn {
    width: 100%;
    padding: 12px 0;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--body-font);
}

.generate-btn:hover,
.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.copy-btn {
    background: var(--success-color);
    padding: 10px 20px;
    width: auto;
}

.copy-btn:hover {
    background: #219150;
}

.output-section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.output-section.show {
    opacity: 1;
    transform: translateY(0);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.output-header h2 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: var(--heading-letter-spacing);
}

.output-header h2 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.study-plan {
    padding: 20px 30px;
    color: var(--text-color, #1f2937);
    line-height: 1.6;
    max-height: 70vh;
    overflow-y: auto;
}

.study-plan h2 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    font-family: var(--heading-font);
}

.study-plan h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    font-family: var(--heading-font);
}

.study-plan p {
    margin-bottom: 15px;
    font-family: var(--body-font);
}

.study-plan strong {
    color: var(--text-color, #1f2937);
    font-weight: 600;
}

.loading-spinner {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(67, 97, 238, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.tips-container {
    background: var(--background-color, #ffffff);
    padding: 25px 30px;
    border-radius: var(--card-border-radius);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tips-container:hover {
    box-shadow: var(--shadow-hover);
}

.tips-container h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: var(--heading-letter-spacing);
}

.tips-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-container li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-family: var(--body-font);
}

.tips-container li:before {
    content: "💡";
    margin-right: 8px;
    flex-shrink: 0;
}

.copy-btn.copied {
    background-color: var(--success-color);
}

.loading-spinner p {
    color: var(--light-text, #6b7280);
    margin-top: 15px;
    font-family: var(--body-font);
}

/* Hero Section Styles */
.hero {
    position: relative;
    padding: 6rem 0 3rem;
    text-align: left;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    overflow: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: white;
    pointer-events: none;
}

.shape1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape2 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: 10%;
    animation: float 10s ease-in-out infinite 1s;
}

.shape3 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 15%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.shape4 {
    width: 35px;
    height: 35px;
    bottom: 20%;
    right: 20%;
    animation: float 9s ease-in-out infinite 1.5s;
}

.shape5 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 30%;
    animation: float 12s ease-in-out infinite 2s;
}

.shape6 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 5%;
    animation: float 11s ease-in-out infinite 0.7s;
}

.hero .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
    opacity: 0.9;
}

.hero-text .highlight {
    color: #FFD43B;
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 1.3rem;
    color: #FFD43B;
}

.stat-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-cta {
    margin-top: 0.8rem;
}

.btn-primary {
    background: #FFD43B;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 212, 59, 0.3);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #FFC107;
    box-shadow: 0 6px 20px rgba(255, 212, 59, 0.4);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.planner-illustration {
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 3s ease-in-out infinite;
}

.icon-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12), 0 0 16px 2px rgba(67, 97, 238, 0.08);
    filter: drop-shadow(0 0 8px #a3bffa33);
    animation: floatIconSmooth 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.icon-wrapper:nth-child(1) {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
}

.icon-wrapper:nth-child(2) {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

.icon-wrapper:nth-child(3) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.icon-wrapper:nth-child(4) {
    bottom: 10%;
    left: 50%;
    animation-delay: 3s;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Footer Styles */
.site-footer {
    background: var(--gradient);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links li {
    margin-bottom: 0.5rem;
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-section.links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom .fa-heart {
    color: #ff5a5f;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.2);
    }

    10% {
        transform: scale(1.1);
    }

    15% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes floatIconSmooth {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-18px);
    }

    80% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsive Styles for Hero Section */
@media (max-width: 992px) {
    .hero {
        padding: 5rem 0 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 1.5rem;
    }

    .planner-illustration {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .planner-illustration {
        width: 200px;
        height: 200px;
    }

    .icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .icon-wrapper i {
        font-size: 1.3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 0 2rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .planner-illustration {
        width: 180px;
        height: 180px;
    }

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

    .icon-wrapper i {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Optimize for mobile */
@media (max-width: 768px) {
    .container {
        margin: 80px auto 30px;
        padding: 0 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .input-section,
    .output-header,
    .study-plan {
        padding: 25px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .generate-btn,
    .copy-btn {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .study-plan h2 {
        font-size: 1.2rem;
    }

    .study-plan h3 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        margin: 70px auto 20px;
        padding: 0 12px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .input-section,
    .output-header,
    .study-plan {
        padding: 20px;
    }

    .output-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }

    .study-plan {
        padding: 15px;
        max-height: 60vh;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 25px;
        padding: 0;
    }

    .tips-container {
        padding: 20px 15px;
    }

    .tips-container h3 {
        font-size: 1rem;
    }

    .tips-container li {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .container {
        margin: 65px auto 15px;
        padding: 0 10px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .input-section,
    .output-header,
    .study-plan {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.85rem;
    }

    .generate-btn,
    .copy-btn {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .study-plan h2 {
        font-size: 1.1rem;
    }

    .study-plan h3 {
        font-size: 0.95rem;
        padding-left: 8px;
    }

    .study-plan p {
        font-size: 0.85rem;
    }
}

.sgpa-navbar,
.navbar-menu,
.nav-link {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sgpa-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(92, 117, 227, 0.363);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: var(--heading-letter-spacing);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.6rem 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover span {
    background: var(--secondary-color);
}

.navbar-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    top: -30px;
    right: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    top: 20%;
    right: 5%;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-menu {
        position: fixed;
        top: 59px;
        right: -100%;
        width: 55%;
        height: calc(100vh - 59px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.1rem 0.5rem;
        transition: right 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .brand-text {
        font-size: 1.2rem;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* AI Badge */
.ai-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-badge i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* AI Info Banner */
.ai-info-banner {
    background-color: rgba(67, 97, 238, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.ai-info-banner i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 2px;
}

.ai-info-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Learning Style Select */
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--button-border-radius);
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--text-color, #1f2937);
    transition: var(--transition);
    font-family: var(--body-font);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

/* Output Actions */
.output-actions {
    display: flex;
    gap: 10px;
}

/* AI Features Section */
.ai-features {
    margin-top: 40px;
    padding: 20px 0;
}

.ai-features h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-family: var(--heading-font);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--background-color);
    border-radius: var(--card-border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.testimonials h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-family: var(--heading-font);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--background-color);
    border-radius: var(--card-border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.2;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.student-info {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.student-name {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-size: 0.9rem;
}

.student-detail {
    color: var(--light-text);
    margin: 5px 0 0;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-badge {
        margin-top: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ai-badge {
        margin-top: 30px;
    }

    .output-actions {
        flex-direction: column;
        width: 100%;
    }

    .ai-badge {
        font-size: 0.7rem;
    }

    .feature-card {
        padding: 15px;
    }
}

/* Fix for the spaced repetition card */
.feature-card h3,
.feature-card p:first-of-type {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}