* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e9f6e3;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.c_main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  max-width: 1200px; 
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; 
}

.c_header {
  background-color: #1d3557; 
  color: #ffffff;
  padding: 10px 0;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.5);
}

.c_header-content {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
}

.logo-img {
  height: 70px;
  width: auto;
  padding-top: 5px;
  filter: brightness(0) invert(1);
}

.logo-img:hover {
  transform: scale(1.05);
}
.c_login {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
}
.c_login button {
  background-color: #e9f6e3;
  color: #26223f;
  border: none;
  padding: 8px 18px;
  font-size: 1.05rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.c_login button:hover {
  transform: scale(1.05);
}

.c_footer {
  background-color: #1d3557;
  color: #ffffff;
  padding: 12px 0;
}

.c_footer-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.c_footer-content p {
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .c_header-content {
    flex-direction: column; 
    gap: 15px;
  }
}




/* Actual page content formatting*/

.c_form_wrapper h1 {
    color: #1D3557;
    margin-bottom: 5px;
    margin-top: 0;
}

.c_form_wrapper p {
    color: #666666; 
    font-size: 0.9rem;
    margin-bottom: 25px;
    margin-top: 0;
}

.c_form_wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
}

.c_form-group {
  width: 100%; 
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
#name-email_wrap, #date-location_wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 50px;
}

label {
  font-weight: 600;
  color: hsl(
    218,
    17%,
    35%
  ); 
  font-size: 0.7rem;
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  margin-left: 5px;
}

#fullName,
#email,
#location,
#otherLocation,
#description,
#username,
#password {
  width: 100%;
  padding: 14px; 

  background-color: #f8fafc; 
  border-radius: 10px; 

  font-size: 0.9rem;
  color: #1d3557;
  box-sizing: border-box;

  border: 2px solid transparent; 
  outline: none;                
  transition: all 0.25s ease;
}

#fullName:focus,
#email:focus,
#location:focus,
#otherLocation:focus,
#description:focus,
#username:focus,
#password:focus {
  background-color: #ffffff; 
  border-color: #336ca9; 
}
.submit-btn {
  background-color: #336ca9;
  display: flex;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  margin: 30px auto 0 auto;
}
.submit-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .c_main{
    padding: 10px 10px;
  }

  #name-email_wrap, #date-location_wrap{
    flex-direction: column;
    gap: 0px;
  }
}

#otherLocationGroup{
  display: none;
}


.c_error-msg {
    color: #E63946; 
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

.input-error {
    border-color: #E63946 !important;
    background-color: #FFF0F0 !important; 
}

/* Login page*/
#loginForm{
  max-width: 450px;
}

/* Staffdash */

.c_dashboard_wrapper {
  max-width: 1000px;
}

#name-email_wrap.c_dashboard_header {
  justify-content: space-between;
  align-items: center;
  gap: 0;
}
.c_dashboard_header .c_form-group {
  margin-bottom: 0;
}
.c_dashboard_header #field2 {
  align-items: flex-end;
}
.submit-btn.c_report_btn {
  margin: 0; 
}

.c_divider {
  border: 0;
  border-bottom: 2px solid #1d3557;
  margin: 20px 0 30px 0;
}

.c_table {
  width: 100%;
  border-collapse: collapse;
}
.c_table th, .c_table td {
  padding: 14px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}
.c_table th {
  background-color: #1d3557;
  color: #ffffff;
}
.c_table tr:nth-child(even) {
  background-color: #f8fafc;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  display: inline-block;
  text-align: center;
  min-width: 90px;
}
.status-open { background-color: #E63946; } 
.status-progress { background-color: #f4a261; } 
.status-closed { background-color: #2a9d8f; } 

.view-btn {
  background-color: #e9f6e3; 
  color: #1d3557;
  border: none; 
  padding: 8px 18px; 
  border-radius: 50px; 
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit; 
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  
  display: inline-flex; 
  align-items: center;
  justify-content: center;
}
.view-btn:hover {
  transform: scale(1.05);
  background-color: #d1eac7; 
}

.c_table th.center-col, 
.c_table td.center-col {
  text-align: center;
}

@media (max-width: 600px) {
  
  #name-email_wrap.c_dashboard_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  #name-email_wrap.c_dashboard_header #field2 {
    align-items: flex-start;
  }

  .c_table {
    border: none;
  }
  
  .c_table thead {
    display: none; 
  }
  
  .c_table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .c_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    text-align: right; 
  }

  .c_table td:last-child {
    border-bottom: none;
  }
  
  .c_table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1d3557;
    text-align: left;
    margin-right: 15px;
  }

  .c_table td.action-cell {
    justify-content: center;
  }
  .c_table td.action-cell::before {
    display: none; 
  }
}


/* it dash*/

.c_dashboard_header #field2.c_filter_group {
  justify-content: center;
}

.c_filter_form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c_filter_checkbox {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.c_filter_label {
  margin: 0;
  cursor: pointer;
  text-transform: none;
  font-size: 0.95rem;
  color: #1d3557;
}

.c_table td form {
  margin: 0;
}

/* sstaff details page */

.c_details_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.c_details_header h1 {
  margin: 0;
}

.c_detail_text {
  width: 100%;
  padding: 14px; 
  background-color: #f8fafc; 
  border-radius: 10px; 
  font-size: 0.9rem;
  color: #1d3557;
  box-sizing: border-box;
  line-height: 1.5;
  min-height: 48px; 
}

.c_it_comment_box {
  font-weight: bold;
}

@media (max-width: 600px) {
  .c_details_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* it details page */

.c_alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}
.c_alert_success {
  background-color: #d1eac7;
  color: #1d3557;
}
.c_alert_error {
  background-color: #FFF0F0;
  color: #E63946;
  border: 1px solid #E63946;
}

.c_it_input {
  width: 100%;
  padding: 14px; 
  background-color: #f8fafc; 
  border-radius: 10px; 
  font-size: 0.9rem;
  color: #1d3557;
  box-sizing: border-box;
  border: 2px solid transparent; 
  outline: none;                
  transition: all 0.25s ease;
  font-family: inherit;
}
.c_it_input:focus {
  background-color: #ffffff; 
  border-color: #336ca9; 
}