:root{
    --clr-dark: #1B1717;
    --clr-light: #f2ecec;
    --clr-main: #3e2a68;
    --clr-lmain: #9B7EBD;
    --clr-hover: #009FBD;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

body{
    background-color: #e1e9eb;
    font-family: Roboto;
}

/*Navigation*/
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--clr-main);
    color: var(--clr-light);
    padding: 0.5rem 3rem;
}

.navbar .logo {
    display: flex;
    gap: 20px;
}

.navbar .logo .c-name {
    display: flex;
    align-items: center;
    font-weight: 700;
    justify-content: center;
    font-size: 1.2rem;
}

.navbar .logo img {
    width: 3rem;
}

.navbar ul {
    display:flex;
    list-style: none;
    align-items: center;
    font-weight: 500;
    gap: 4rem;
    margin: 0; 
    padding: 0 20px; 
}

.navbar ul li a {
    text-decoration: none;
    color: var(--clr-light);
}

.wrapup{
    display: flex;
    flex-direction: column;
}

footer{
    width: 100%;
    text-align: center;
    padding: 10px;
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*Login & Registration*/
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 8rem;
    margin-bottom: 1.5rem;
}

.form-title, .info-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.form-container {
    min-width: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 0.5rem 2rem;
    overflow: hidden;
}

/*Login form*/
 
#form-login{
    border-left: 2px solid rgb(189, 189, 189);
    padding: 0 2rem;
    gap: 1rem;
    width: fit-content;   
}

#login-form {
    width: fit-content;
    height: 420px;
    gap: 1rem;
}


.info-container {
    width: 820px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 0 1rem;
    gap: 1.75rem;
    height: 420px;
}

.brief-description, .how-to-use{
 background-color: aliceblue;
 box-shadow: 0px 2px 8px 0px rgba(33, 33, 33, 0.5);
 padding: 1rem;
 border-radius: 0.5rem;
}

/** Register **/
.form{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap:0.5rem;
    margin-bottom: 15px;
}

.username-field{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.uname-container, .register-field{
    width: 100%;
}

.auth-field{
    width: 100%;
    border-radius: 5px;
    border: 1px solid #c0c0c0;
    box-sizing: border-box;
    padding: 10px 15px;
}

.auth-field:hover{
    border: 1.5px solid var(--clr-main);
}

#password-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-field input {
    border: 1px solid transparent;
    outline: none;
    width: 100%;
}

.eyecons  {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.eyecons  #togglepassword, #con-togglepassword{
    display: none;
    justify-content: center;
    align-items: center;
}

.eyecons  #toggleicons, #con-toggleicons{
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth {
    width: 100%;
    padding: 10px 15px;
    border-radius: 12px;
    border-style: none;
    background: var(--clr-main);
    color: white;
    cursor: pointer;
    font-weight: 700;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.auth:hover {
    background-color: var(--clr-lmain);
}

.auth-link{
    margin-top: 20px;
    padding: 10px 10px;
    font-size: 0.9rem;
}

.auth-link a{
    text-decoration: none;
    font-weight: 700;
}

.auth-link a:hover{
    color: var(--clr-hover);
}

.auth-error {
    color: #da3121;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}



/** Sidebar **/
.sidebar{
    position: fixed;
    z-index: 100;
    box-shadow: 1px 0px 12px 4px rgba(0, 0, 0, 0.25);
    height: 100%;
    width: 240px;
    background:var(--clr-main);
    transition: all 0.5s ease;
}

.sidebar .logo-details{
    margin: 48px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.sidebar .logo-details img{
    width: 5rem;
}

.sidebar .logo-details i{
    font-size: 28px;
    font-weight: 500;
    color: #fff;
}

.sidebar .logo-details .logo_name{
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar .nav-links li{
    position: relative;
    list-style: none;
    height: 42px;
    padding: 0 12px;
}

.sidebar .nav-links li a, .sidenav-outbtn{
    height: 100%;
    width: 100%;
    padding: 1.12rem 0.75rem;
    border-radius:8px;
    align-items: center;
    display: flex;
    text-decoration: none;
    transition: all 0.4s ease;
}

.sidebar .nav-links li a.active,
.sidebar .nav-links li a:hover{
    background: var(--clr-lmain);
}

.sidebar .nav-links li i{
    min-width: 2rem;
    font-size: 20px;
    color: #fff;
}

.sidebar .nav-links li a .links_name, .sidenav-outbtn{
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
}

.sidebar .nav-links .log-out{
    margin-top: 45px;
}

.log-out form{
    width: 100%;
}

.sidenav-outbtn{
    background: transparent;
    border: none; 
    padding: 0.6rem 0.75rem;
}

.sidenav-outbtn:hover{
    background-color: var(--clr-lmain);
}

/** Dashboard Content **/

.section-header{
    position: relative;
    background: #f5f5f5;
    min-height: 100vh;
    width: calc(100% - 240px);
    left: 240px;
    transition: all 0.5s ease;
}

.section-header nav{
    display: flex;
    justify-content: space-between;
    height: 64px;
    background: #fff;
    align-items: center;
    position: fixed;
    width: calc(100% - 240px);
    left: 240px;
    z-index: 100;
    padding: 0 20px;
    box-shadow: 0px 1px 12px 4px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
}

.header-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.40rem;
    font-weight: 500;
    padding:1rem;
}

.user-name{
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
    margin: 0 10px;
    white-space: nowrap;
}

.user-log{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.profile-image {
    display: block;
    width: 4rem; 
    height: 4rem; 
    border-radius: 50%; 
    overflow: hidden;
    position: relative;
}

/**
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
**/

/** Forms **/
.main-forms, .table-main-forms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0;
    background-color: #f9f9f9; 
}

.table-main-forms{
    padding: 8rem 0;
}

.wrapper, .table-wrapper, .oath-container{
    margin:0 auto;
    padding: 1rem 2rem;
    background-color: #fcfbf9; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.oath-container{
    margin-bottom: 2.5rem;
    background-color: #d6e7f5; 
    border: 3px solid #71a4ce;
    padding: 1.2rem 2rem;
}

.table-wrapper, .wrapper{
    width:94%;
}

.flex-form, .flex-extra{
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #adadad;
}

.flex-extra{
    flex-direction: row;

}

#marital-status, #citizen, .birth, .physical-blood{
    width:100%
}

#sex-flex, #marital-status, #citizen{
    display: flex;
    flex-direction: column;
}

#sex-flex input[type="radio"], #marital-status input[type="radio"], #citizen input[type="radio"]{
    margin-left: 1rem;
}

.field-group {
    width:100%;
}


.label-title {
    font-weight: 500;
    font-size: 1rem;
}

label {
    font-weight: 400;
    font-size: 1rem;
}

.field-group input[type="text"], .field-group input[type="number"], .field-group
input[type="password"], .field-group input[type="date"], .civilstat-input, select {
    width:70%;
    padding: 8px 2px;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
}


.field-group input[type="date"], select{
    width: fit-content;
}

.form-submit{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-submit .cancelbtn{
    background-color: #e21717;
}

.form-submit .cancelbtn:hover{
    background-color: #cf1717;
}

.form-submit button {
    margin-top: 2rem;
    padding:0.5rem 1rem;
    background-color: #5c67f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.form-submit button:hover {
    background-color: #4755c7;
}

.btn-add, .btn-remove{
    color: white; 
    border: none;
    margin-top: 10px;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
}

.child-entry{
    border-bottom: 1px solid gainsboro;
    padding: 1rem 0;
}

.flex-add{
    width: 100%;
    display: flex;
    justify-content: end;
}

.btn-add {
    background-color: #4CAF50; 
    color: white; 
    width:fit-content;
    text-decoration: none;
}

.btn-add:hover {
    background-color: #45a049; 
}

.btn-remove {
    display: none;
    background-color: #f44336; 
}
.btn-remove:hover {
    background-color: #d32f2f; 
}

/** Table layout sa education table**/
.education-table {
    width: 100%;
    border-collapse: collapse;
}

.education-table th,
.education-table td {
    padding: 8px;
    text-align: left;
}

.education-table th:nth-child(2),
.education-table th:nth-child(3),
.education-table td:nth-child(2),
.education-table td:nth-child(3) {
    border-left: 2px solid #ccc; 
    width: 35%; 
}

.education-table th:nth-child(1),
.education-table td:nth-child(1) {
    width: 30%; 
}

/*Table layout used sa Civil Service Eligibility, Work Experiences, Voluntary Works, Training Programs, and Other Information*/
.table-container {
    margin-top: 2rem;
}

.form-table{
    width: 100%;
    border-collapse: collapse;
}

.form-table th, .form-table td{
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.form-table th{
    background-color: #4ca2af;
    color: white;
    font-weight: bold;
}

.table-form-row:nth-child(even){
    background-color: #f2f2f2;
}

.form-table input[type="text"], .form-table input[type="number"], .form-table input[type="date"]{
    width: 100%;
    padding: 0.5rem;
    border: none;
    outline: none;
    background: transparent;
}

.form-table .action{
    width:7%;
    text-align: center;
    font-size: 1.25rem;
}
.question-wrapper{
    margin-top:4rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-container{
    background-color: #fff7ee;
    padding: 1rem 2rem;
    border: 1px solid rgb(211, 210, 187);
    border-radius: 0.50rem;
}

.question-flex{
    display: flex;
    flex-direction: column;
}

.question-group{
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}

.question-group input[type="text"]{
    border: none;
    border-bottom: 1px solid #1B1717;
    background-color: transparent;
    outline: none;
    width: 36rem;
}

.addbtncontainer{
    margin-top: 1.25rem;
}

.search-container{
    display: flex;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid black;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin-bottom: 1rem;
    gap: 0.5rem; 
}

.search-bar input {
    border: none;
    background-color: transparent;
    outline: none;
    width: 24rem;
    font-size: 1rem;
    flex-grow: 1;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button i {
    font-size: 1.2rem;
    color: black;
}

.edit-user-btn{
    background-color: transparent;
    border: none;
    padding-right: 0.5rem;
    color: blue;
    font-size: 1.2rem;
}

.search-filter {
    display: flex;
    flex-direction: column;
}

.filter{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.position-dropdown, .school-dropdown, .status-dropdown, .nature-dropdown{
    max-width: 15rem; 
    width: 100%;
    text-overflow: ellipsis; 
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #1B1717;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
}

.reg-posdrop{
    display: flex;
    flex-direction: column;
}

#pos-drop{
    border: 1px solid #b6b6b6;
    max-width: 38rem;
    padding: 0.75rem 0.75rem;

}

#p-dd, #s-dd, #stat-dd, #n-dd{
    border: none;
}

/***Pop-up sa edit/update ng user***/
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
}

.close {
    color: #5d5d5d;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.addfilter{
    padding: 0.30rem 0.60rem;
    color: var(--clr-dark);
    font-size: 1rem;
    background: transparent;
    border-radius: 7px;

}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 100px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: #3e2a68;
    color: white;
    padding: 15px;
    text-align: center;
}

.card-body {
    padding: 15px;
}

.card-body p {
    margin: 0 0 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #0056b3;
}
