/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.school-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.logo-container {
    margin-right: 20px;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.school-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.school-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #bbdefb;
}

.school-info p {
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 300;
}

.header-title {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-title h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-title p {
    font-size: 16px;
    font-weight: 300;
    color: #bbdefb;
}

/* Main Content */
.main-content {
    padding: 30px;
}

/* Cards */
.search-card, .result-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.passed {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.card-header.not-passed {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge-passed {
    background-color: #4caf50;
    color: white;
}

.badge-not-passed {
    background-color: #f44336;
    color: white;
}

.card-body {
    padding: 25px;
}

/* Search Form */
.search-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3949ab;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #3949ab;
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.2);
}

.btn-search {
    background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-search:hover {
    background: linear-gradient(135deg, #303f9f 0%, #3949ab 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 73, 171, 0.4);
}

/* Info Box */
.info-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #3949ab;
}

.info-box h4 {
    color: #3949ab;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
    color: #555;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

/* Student Info */
.student-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.student-info h4 {
    color: #3949ab;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

/* Grades Section */
.grades-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.grades-section h4 {
    color: #3949ab;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid #3949ab;
    transition: all 0.3s;
}

.grade-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.grade-item.highlight {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    font-weight: 700;
}

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

.score {
    font-weight: 700;
    font-size: 18px;
    color: #3949ab;
}

.grade-item.highlight .score {
    color: #2e7d32;
    font-size: 20px;
}

/* Notes */
.notes {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.notes h4 {
    color: #3949ab;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes p {
    margin-bottom: 10px;
    color: #555;
}

.congratulations {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.congratulations i {
    font-size: 32px;
    color: #4caf50;
}

.not-passed-msg {
    background-color: #ffebee;
    border-left: 5px solid #f44336;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.not-passed-msg i {
    font-size: 32px;
    color: #f44336;
}

/* Card Footer */
.card-footer {
    padding: 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-back {
    background: linear-gradient(135deg, #757575 0%, #9e9e9e 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: linear-gradient(135deg, #616161 0%, #757575 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.print-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #1a237e;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.footer p {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .school-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .info-grid, .grades-grid {
        grid-template-columns: 1fr;
    }
    
    .card-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .school-info h1 {
        font-size: 18px;
    }
    
    .school-info h2 {
        font-size: 16px;
    }
    
    .header-title h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .card-body, .card-footer {
        padding: 15px;
    }
    
    .form-group input, .btn-search {
        font-size: 16px;
        padding: 12px;
    }
}