/* CSS from cgpa-v2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.header {
    margin-bottom: 30px;
}

.main-title {
    color: #333;
    font-size: 29px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    color: #666;
    font-size: 17px;
    margin-bottom: 20px;
}

.developer {
    font-size: 19px;
    color: #151313;
    margin-bottom: 30px;
}

/* Navigation Buttons */
.nav-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.nav-btn1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.nav-btn1:hover {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    transform: scale(1.05);
}

.nav-btn2 {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
}

.nav-btn2:hover {
    background: linear-gradient(135deg, #ff512f, #dd2476);
    transform: rotate(-2deg) scale(1.05);
}

.nav-btn3 {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.nav-btn3:hover {
    background: linear-gradient(135deg, #06beb6, #48b1bf);
    transform: translateY(-4px);
}

.nav-btn4 {
    background: linear-gradient(135deg, #f12711, #f5af19);
}

.nav-btn4:hover {
    background: linear-gradient(135deg, #e65c00, #F9D423);
    transform: translateY(-4px);
}

.nav-btn5 {
    background: linear-gradient(135deg, #00B4DB, #0083B0);
}

.nav-btn5:hover {
    background: linear-gradient(135deg, #0083B0, #00B4DB);
    transform: translateY(-4px);
}

/* Section Styles */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    float: left;
    /* Kept from v3 preference */
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Common form styles */
.input-group {
    margin-bottom: 25px;
    text-align: left;
    clear: both;
}

.input-label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.type-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.input-field,
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-field:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 10px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.error-message,
.success-message {
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: none;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

.error-message.show,
.success-message.show {
    display: block;
}

.info-box {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #4299e1;
    /* Kept v3 style accent */
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
}

.result {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: #333;
}

.hidden {
    display: none;
}

.internal-subject-card {
    background: #fdfdfd;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}