/*cgpa_style.css - Main stylesheet for CGPA Calculator */

/* Background images for each page */

body.index {
    background-image: url('bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.grade {
    background-image: url('bg2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.result {
    background-image: url('bg3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: white;
}

.header {
    background-color: #87CEEB;
    padding: 20px;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.input-window {
    background-color: white;
    border: 1px solid black;
    padding: 40px;
    border-radius: 5px;
    min-width: 400px;
    max-width: 600px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #87CEEB;
}

.but {
    width: 100%;
    padding: 4px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #87CEEB;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #5eb8db;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffe6e6;
    border-radius: 4px;
    text-align: center;
}


/* Policy Section Styling */
.policy-section {
    background-color: #e8f4f8;
    border: 2px solid #87CEEB;
}

.policy-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.checkbox-group {
    margin: 10px 0;
}

.checkbox-item {
    margin: 12px 0;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #f0f8ff;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 10px;
    vertical-align: middle;
}

input[type="radio"] + label {
    cursor: pointer;
    display: inline;
    font-weight: normal;
    color: #333;
    font-size: 15px;
}

/* Policy info display on result page */
.policy-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #e8f4f8;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}



.course-input {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.course-input h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.result-window {
    text-align: center;
}

.result-item {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.status {
    margin-top: 30px;
    padding: 15px;
    border-radius: 4px;
    font-size: 20px;
}

.status.raised {
    background-color: #90EE90;
    color: #006400;
}

.status.maintained {
    background-color: #FFD700;
    color: #8B4000;
}

.status.dropped {
    background-color: #FFB6C1;
    color: #8B0000;
}