@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;300;400;500;600&display=swap');
*{
    padding: 0;
    margin: 0;
    font-family: 'Kanit', sans-serif;
}
.active-event {
    background-color: green;
    color: white;
}
.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 40px;
    margin-bottom: 10px;
    padding: 10px 0;
    color: white;
}
.nav{
    background: #002fa7;
}
.header img{
    width: 150px;
}
.nav-btn{
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
#addButton{
    padding: 5px 20px;
    border-radius: 5px;
    border: 0px;
    background-color: #33b249;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
#addButton:hover{
    background-color: #37a36b;
}

#addTicketForm,
#studentFormContainer,
#traineeFormContainer,
#editFormContainer,
#formContainer{
    position: relative;
    padding: 20px;
    padding-left: 50px;
    margin: 0 35%;
background: rgba(0, 0, 0, 0.2);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
#courseTableContainer h2,
#traineeFormContainer h2,
#studentFormContainer h2,
#editFormContainer h2,
#formContainer h2{
    padding-bottom: 10px;
}
#courseForm,
#ticketForm,
#studentForm,
#traineeForm,
#editForm,
#eventForm{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
#courseForm input,
#studentForm input,
#traineeForm input,
#editForm input,
#eventForm input{
    width: 80%;
}
button{
    padding: 5px 20px;
    border-radius: 5px;
    border: 0px;
    background-color: #33b249;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
#courseTableContainer h2,
#studentTableContainer h2,
#traineeTableContainer h2,
#eventTableContainer h2{
    text-align: center;
    padding: 10px;
}
#feesTable,
#courseTable,
#courseForm,
#ticketForm,
#studentTable,
#traineeTable,
#eventTable{
    margin-left: auto;
  margin-right: auto;
}
table {
    border-collapse: collapse;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0px 10px 15px 5px grey;
    margin-bottom: 20px;
  }
table, tr, td, th{
    border: 1px solid #002fa7;
    border-collapse: collapse;
    font-size: 14px;
    }
thead{
    background: #002fa7;
    color: #fff;
}
th{
    padding: 10px 15px;
}
td{
    padding: 8px 10px;
}
td button{
    margin: 0 5px; 
}
.red-button{
    background-color: red;
    color: white;
    transition: 0.3s;
}
.red-button:hover{
    background-color: #d11a2a;
}
.green-button{
    background-color: #33b249;
    color: white;
    transition: 0.3s;
}
button:hover{
    background-color: #37a36b;
}
.tab{
    font-size: 20px;
    color: black;
    transition: 0.3s;
}
.tab-head{
    font-size: 20px;
}
.tab:hover{
    color: #002fa7;
}
.searchbar{
    padding: 5px 17px;
    margin-left: 358px;
    font-size: 12px;
    border-radius: 5px;
    border: 2px solid #002fa7
}
.searchbar2{
    width: 49%;
    margin-left: 260px;
    margin-bottom: 5px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    border: 2px solid #002fa7
}
/* Define the floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply the animation to the floating image */
.floating-image {
    animation: float 2s infinite;
}

.student-detail {
    border: 2px solid #002fa7;
    margin: 10px 10px;
    border-radius: 10px;
    padding: 10px 15px;
    width: 25%;
}

.search-phone {
    margin: 10px;
    padding: 3px;
}

#searchStudentForm{
    display: flex;
    justify-content:center;
    align-items:center;
    padding: 20px;
}

#studentDetailsContainer{
    display: flex;
    margin-left: 50px;
}
#issueDescription{
    width: 285px;
    height: 100px;
}
#addTicketButton{
    margin: 10px auto;
}

.issue-card,
.ticket-card {
    border: 1px solid #002fa7;
    border-radius: 10px;
    padding: 16px;
    margin: 16px;
    position: relative;
}

.red-circle {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.yellow-circle {
    width: 20px;
    height: 20px;
    background-color: #ffc800;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.green-circle {
    width: 20px;
    height: 20px;
    background-color: #006aff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}
.main-info-container,
.issue-info-container,
.ticket-details {
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
    padding-right: 50px;
    padding-bottom: 15px;
    font-style: italic;
    color: grey;
    font-weight: 300;
}
.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    margin: 20px 0;
}
#searchInput{
    padding-right:200px;
}
.revoke-button {
    color: white;
    background-color: red;
    border: none;
    cursor: pointer;
}
.revoke-button:hover{
    background-color: #d11a2a;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.popup-content {
    background-color: #fff;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
.popup-content button{
    width:20%;
    margin: auto;
    margin-top: 5px;
}

.close-popup {
    position: absolute;
    top: -4px;
    right: 18px;
    cursor: pointer;
    font-size: 40px;
}

.done-button{
    position: absolute;
    right: 15px;
    margin-top: -22px;
}
#remarksTextArea{
    padding: 4px;
}
.remarks-container{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    color: black;
    font-style: italic;
    font-weight: 300;
    background-color: lightgreen;
    padding: 0px 10px;
    border: 0.5px solid black;
    border-radius: 5px;
}
.edit-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Add this CSS for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

/* Add this CSS to style the form inside the modal */
#feesForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#feesForm label {
    margin-top: 10px;
}

#feesForm input[type="number"] {
    width: 60%;
    padding: 5px;
    margin-top: 5px;
}

#feesForm input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    cursor: pointer;
}     
.wave{
    position: absolute;
    z-index: -1;
}   
.heading{
    color: #FF9933;
    margin-top: 90px;
    margin-left: 80px;
    display: flex;
    justify-content: space-between;
}
.heading>.head-text>h1{
    font-size: 90px;
}
.heading>.head-text>h2{
    font-size: 45px;
}
#element, .typed-cursor{
    font-size: 45px;
    font-weight: 400;
}
.logo-img{
    width: 200px;
    background-color: white;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.head-img>img{
    width: 470px;
    height: 450px;
    border-radius: 50%;
    margin-right: 70px;
    padding-right: 100px;
    filter: grayscale(100%);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 100px;
}
.card {
    border: 2px solid #003399;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    overflow: hidden; /* Hide the overflow for smooth hover effect */
    transition: transform 0.3s; /* Add a smooth transition effect */
    color: #FF9933;
}
.card:hover {
    transform: scale(1.05); /* Increase the size on hover */
}
.card img {
    width: 170px;
    height: auto;
}
.card h2 {
    font-size: 22px;
}
.card p {
    font-size: 14px;
}
.footer{
    display: flex;
    justify-content: space-between;
    background-color: #003399;
    color: white;
    font-size: 18px;
    padding: 10px 50px;
    margin-top: 20px;
}
.credits{
    display: flex;
    gap: 20px;
}
.credits>a{
    color: white;
    text-decoration: none;
}