
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #e8f5e9, #c8e6c9);
    margin: 0;
    color: #2e3d24;
    transition: background 0.5s;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1b5e20;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    border-bottom: 3px solid #4caf50;
}

.site-name {
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s;
}
.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #c8e6c9;
}

.container {
    width: 80%;
    margin: 50px ;
}

.card {
    background: #f4f9f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-shadow: 1px 1px 3px rgba(173, 172, 172, 0.5);
}

.dashboard-card {
    background: url('assets/dashboard-bg.jpg') no-repeat center center;
    background-size: cover;
    color: rgb(0, 0, 0);
    text-shadow: 1px 1px 3px rgba(173, 172, 172, 0.5);
}

.grade-card {
    background: url('assets/.grade-card.jpg') no-repeat center center;
     background-size: cover;
    color: rgb(0, 0, 0);
    text-shadow: 1px 1px 3px rgba(51, 46, 46, 0.5);
}


.info-box {
    background-color: #c8e6c9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}
.info-box p {
    margin: 8px 0;
    
}

.dashboard {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.card p {
    font-size: 28px;
    font-weight: bold;
}
.grades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.grades-table th, .grades-table td {
    border: 1px solid #a5d6a7;
    padding: 10px 12px;
    text-align: left;
}
.grades-table th {
    background-color: #4caf50;
    color: white;
}
.grades-table tr:nth-child(even) {
    background-color: #f1f8e9;
}


button {
    padding: 10px 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;

}
button:hover {
    background-color: #388e3c;
}


input, select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin: 10px 0;
    width: 100%;
    transition: border 0.3s;
}
input:focus, select:focus {
    border-color: #27ae60;
    outline: none;
}


@media screen and (max-width: 768px) {
    .container {
        width: 95%;
    }
    .grades-table th, .grades-table td {
        font-size: 14px;
    }
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.custom-select select {
    width: 100%;
    padding: 12px 40px 12px 15px; /* space for arrow */
    border-radius: 6px;
    border: 1px solid #a5d6a7;
    font-size: 15px;
    cursor: pointer;
    appearance: none; /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f4f9f4 url('assets/down-arrow.svg') no-repeat right 12px center;
    background-size: 20px;
    transition: all 0.3s;
}

.custom-select select:hover {
    border-color: #4caf50;
    background-color: #e8f5e9;
}

.custom-select select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 5px rgba(46,125,50,0.5);
    background-color: #f1f8e9;
}


.grades-table tr {
    transition: background-color 0.3s;
}

.grades-table tr:hover {
    background-color: #d0f0c0;
}

.custom-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #a5d6a7;
    background-color: #f4f9f4; /* same as dropdown */
    font-size: 15px;
    transition: all 0.3s;
}

.custom-input:hover {
    border-color: #4caf50;
    background-color: #e8f5e9;
}

.custom-input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 5px rgba(46,125,50,0.5);
    background-color: #f1f8e9;
}
