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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('https://images.unsplash.com/photo-1532200624530-cc3d3d0d636c?') center/cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #999;
}

.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 122, 255, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.results-section {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #dee2e6;
}

.result-card h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.4rem;
}

.grade-breakdown {
    margin-bottom: 25px;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.grade-item:last-child {
    border-bottom: none;
}

.grade-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #007AFF;
    border-top: 2px solid #007AFF;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
}

.grade-item .label {
    color: #666;
}

.grade-item .value {
    font-weight: 600;
    color: #333;
}

.status {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.status.success {
    background: linear-gradient(135deg, #34C759, #30D158);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.3);
}

.status.failure {
    background: linear-gradient(135deg, #FF3B30, #FF453A);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}

.requirement {
    background: linear-gradient(135deg, #FF9500, #FF9F0A);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.3);
}

.info-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #666;
    font-size: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .calculator-card {
        padding: 25px;
        border-radius: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .input-group input {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .calculate-btn {
        padding: 16px;
        font-size: 1.1rem;
    }
}
