* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
}

main {
    padding: 40px;
}

/* Home Section Styles */
.home-section {
    text-align: center;
    padding: 60px 20px;
}

.home-content {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.home-section h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.home-description {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
}

.feature-item span:last-child {
    font-weight: 600;
    color: #555;
}

.btn-start {
    padding: 18px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

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

/* Back Button */
.back-button-container {
    margin-bottom: 20px;
}

.btn-back {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

.score-input-section {
    margin-bottom: 40px;
}

.score-input-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

#scoreForm {
    max-width: 500px;
    margin: 0 auto 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.input-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.btn-primary {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.results-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #e0e0e0;
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.total-score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3em;
}

.total-score-display strong {
    font-size: 1.5em;
    margin-left: 10px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section label {
    font-weight: 600;
    margin-right: 10px;
    color: #555;
}

.filter-section select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-section select:focus {
    outline: none;
    border-color: #667eea;
}

.universities-list {
    display: grid;
    gap: 20px;
}

.university-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.university-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.university-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.university-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.university-card.admitted {
    border-color: #28a745;
    background: #f0fff4;
}

.university-card.admitted::before {
    background: #28a745;
}

.university-card.not-admitted {
    border-color: #dc3545;
    background: #fff5f5;
    opacity: 0.7;
}

.university-card.not-admitted::before {
    background: #dc3545;
}

.university-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.university-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.admitted {
    background: #28a745;
    color: white;
}

.status-badge.not-admitted {
    background: #dc3545;
    color: white;
}

.university-info {
    margin-top: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

.majors-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.majors-list h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.major-item {
    background: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.major-name {
    font-weight: 600;
    color: #333;
}

.major-score {
    color: #667eea;
    font-weight: 600;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 2px solid #e0e0e0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    #scoreForm {
        grid-template-columns: 1fr;
    }

    .university-header {
        flex-direction: column;
        gap: 10px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}

