/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 650px;
    margin: 5px auto;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 90%;
}

/* Header */
h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}


/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 1px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1px;
}

/* Logo Styling */
.logo {
    width: 100px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 5px;
}

/* Header Text Styling */
.header h1 {
/*     font-size: 24px; */
    color: #333;
    font-weight: bold;
    margin: 5px 0;
}

.header h2 {
/*     font-size: 18px; */
    color: #555;
    margin: 3px 0;
}

.header h3 {
/*     font-size: 14px; */
    color: #777;
    margin: 3px 0;
}


/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="number"],
input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #007bff;
}

/* Button */
.btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

/* Minimalistic Dropdown */
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    appearance: none; /* Removes default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Add a subtle dropdown arrow */
.form-group {
    position: relative;
}

/* Hover & Focus Effects */
select:hover, select:focus {
    border-color: #007bff;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}


/* Loading Indicator */
.loading {
    display: none;
    text-align: center;
    font-size: 18px;
    color: #007bff;
    margin-top: 20px;
}

/* Result Section */
.result {
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Header */
h2 {
    color: #333;
    margin-bottom: 1px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    font-size: 1.5rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    background-color: white;
    font-size: 1rem;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #007bff;
    color: white;
    text-wrap:wrap;
}


/* Student Details Section */
.student-info {
    width: 100%;
    max-width: 900px;
    margin: 2px auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.student-info h2 {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

#resultContainer{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    
}
/* Basic Info */
.student-basic {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0px;
}

/* Student Statistics */
.student-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.student-stats p {
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.05);
}

.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.passed {
    background-color: #d4edda;  /* Light green background */
    color: #155724;            /* Dark green text */
    border: 1px solid #c3e6cb;
}

.failed {
    background-color: #f8d7da;  /* Light red background */
    color: #721c24;            /* Dark red text */
    border: 1px solid #f5c6cb;
}

 
 


/* Error Message */
.error {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}
.fail{
background-color: rgb(233, 181, 174);
}
.failText{
    color: rgb(243, 35, 8);
    }
/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 1rem;
        margin-bottom:10px;
    }

    h2 {
        font-size: 0.9rem;
    }
    

    input[type="number"],
    input[type="text"] {
        padding: 8px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px;
        font-size: 1rem;
    }

    th, td {
        font-size: 0.8rem;
        padding: 8px;
        text-align: center;
    }

    .result {
        padding: 3px;
    }
}


/* print button */
.print-btn {
    background: none;
    border: 2px solid #333;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: #333;
}

.print-btn:hover {
    background: #333;
    color: white;
}

.faild{
    background-color: #f7b0b7;
    
}



/* print  */
@media print {
    .hide-on-print {
        display: none !important;
    }
    .no-print {
        display: none !important;

    }
    .container {
        max-width:21cm;
        padding: 2px;
        margin-top: 0px;
    }
    .student-stats {
        margin: auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1px;
        font-size: 10px;
        color: #555;
    }
    .header{
        margin-bottom: 0px;
    }
    table{
        font-size:10px
    }
    footer{
        position: relative;
        bottom: 0;
        
    }
}
