/**
 * Public styles for Student Management System
 */

/* Result Checker Styles */
.result-checker-container {
    max-width: 1200px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.result-checker-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* School Header */
.school-header {
    background-color: #fff;
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.school-logo {
    max-height: 100px;
    margin-bottom: 10px;
}

.school-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.school-motto {
    font-style: italic;
    color: #666;
}

/* Content Area - 80% Dark Blue, 20% Dark Yellow as requested */
.result-checker-content {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #0a2463 80%, #ffc20a 20%);
    padding: 0;
}

@media (min-width: 768px) {
    .result-checker-content {
        flex-direction: row;
    }
}

/* Left Side - Dark Blue */
.result-checker-left {
    flex: 4;
    background-color: #0a2463; /* Dark Blue */
    padding: 30px;
    color: white;
}

/* Right Side - Dark Yellow */
.result-checker-right {
    flex: 1;
    background-color: #ffc20a; /* Dark Yellow */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slider */
.result-checker-slider {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

/* Search Form */
.result-checker-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
}

.result-checker-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 194, 10, 0.5);
}

.form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.btn-check-result {
    width: 100%;
    padding: 12px;
    background-color: #ffc20a; /* Dark Yellow */
    border: none;
    color: #0a2463; /* Dark Blue */
    font-weight: 700;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-check-result:hover {
    background-color: #ffcf3c;
    transform: translateY(-2px);
}

/* Result Display */
#result_container {
    margin-top: 30px;
}

.result-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 30px;
}

.result-card .card-header {
    padding: 15px 20px;
}

.result-card .card-body {
    padding: 25px;
}

.student-info {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.student-info h4 {
    margin-bottom: 10px;
    color: #333;
}

.student-info p {
    margin-bottom: 5px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 767px) {
    .result-checker-content {
        flex-direction: column;
    }
    
    .result-checker-left,
    .result-checker-right {
        width: 100%;
    }
    
    .result-checker-right {
        padding: 20px;
    }
    
    .result-checker-slider {
        height: 180px;
    }
}

/* Animation Effects */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Right Side Content */
.school-info {
    color: #0a2463;
    text-align: center;
}

.school-contact {
    margin-top: 20px;
    font-size: 14px;
}

.school-contact p {
    margin: 10px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0a2463;
    color: #ffc20a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #061a4b;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    
    #result_container, #result_container * {
        visibility: visible;
    }
    
    #result_container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .btn-success {
        display: none;
    }
}
