@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css);
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
}

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  color: #555555;
  background-color: #ebeced;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  color: #4a5361;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  padding-left: 260px;
  z-index: 999998;
  width: 100%;
  height: 55px;
  background-color: #fff;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.15);
}

header a {
  display: inline-flex;
  color: #4a5361;
  height: 100%;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

header a i {
  font-size: 16px;
}

header a:hover, header a:active {
  color: #606c7e;
}

header .space-between {
  flex: 1;
}

header .dropdown {
  display: inline-flex;
  color: #4a5361;
  height: 100%;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}

header .dropdown i {
  font-size: 18px;
}

header .dropdown:hover, header .dropdown:active {
  color: #606c7e;
}

header .dropdown .list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.05);
}

header .dropdown .list a {
  padding: 10px 15px;
  font-size: 14px;
}

header .dropdown .list a:hover {
  background-color: #fbfbfb;
}

header .dropdown:hover .list, header .dropdown:active .list {
  display: flex;
  flex-flow: column;
}

header.full {
  padding-left: 0;
}

aside {
  position: fixed;
  z-index: 999999;
  height: 100%;
  width: 260px;
  display: flex;
  flex-flow: column;
  background-color: #26292f;
  overflow-y: auto;
}

aside h1 {
  display: flex;
  background-color: #0c5f69;
  width: 100%;
  height: 55px;
  min-height: 55px;
  color: #fff;
  padding: 0 20px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Add spacing between logo and text */
}

aside > a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #afb1b5;
  padding: 15px 20px;
}

aside > a i {
  color: inherit;
  width: 40px;
}

aside > a:hover, aside > a.selected {
  background-color: #383d48;
  color: #fff;
  border-left: 3px solid #4a79b4;
  padding: 15px 17px;
}

aside > a.selected + .sub {
  display: flex;
}

aside > a .note {
  background-color: #383c46;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 10px;
}

aside .sub {
  display: none;
  flex-flow: column;
  background-color: #1d1f24;
  padding: 13px 0;
}

aside .sub a {
  font-size: 14px;
  color: #afb1b5;
  text-decoration: none;
  padding: 4px 20px;
}

aside .sub a span {
  display: inline-block;
  width: 40px;
  font-size: 12px;
  color: inherit;
}

aside .sub a:hover, aside .sub a.selected {
  color: #fff;
}

aside .footer {
  display: flex;
  flex-flow: column;
  margin-top: auto;
  padding: 15px;
  border-top: 1px solid #21242a;
  font-size: 14px;
  color: #5a5b5e;
}

aside .footer a {
  text-decoration: none;
  font-size: 14px;
  color: #707276;
  padding-bottom: 2px;
}

aside .footer a:hover {
  color: #7c7f83;
}

aside.closed {
  display: none;
}

main {
  padding: 30px;
  padding-left: 290px;
  padding-top: 85px;
}

main.full {
  padding-left: 30px;
  padding-right: 30px;
}

main h2 {
  font-size: 20px;
  padding-bottom: 20px;
  font-weight: 600;
}

main h2 span {
  font-size: 16px;
  margin-left: 5px;
  font-weight: 600;
  color: #959faf;
}

main .content-title {
  border-bottom: 1px solid #dbdddf;
  display: flex;
}

main .content-title h2 {
  flex: 1;
}

main .content-title .btn {
  height: 36px;
}

main .content-title .title {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}

main .content-title .title i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #489c80;
  color: #fff;
  width: 52px;
  height: 42px;
  border-radius: 4px;
  margin-right: 12px;
}

main .content-title .title i.alt {
  background-color: #7c8394;
}

main .content-title .title h2 {
  padding: 0 0 3px 0;
}

main .content-title .title p {
  margin: 0;
  font-size: 14px;
  color: #99999a;
  font-weight: 500;
}

main .msg {
  display: flex;
  align-items: center;
  margin: 15px 0 0 0;
  padding: 15px;
  font-weight: 500;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1);
}

main .msg p {
  margin: 0;
  padding: 0 15px;
  font-size: 14px;
  flex: 1;
}

main .msg i.fa-times {
  align-self: flex-end;
  justify-content: flex-end;
  cursor: pointer;
}

main .msg i.fa-times:hover {
  opacity: .9;
}

main .msg.success {
  background-color: #C3F3D7;
  border-left: 4px solid #51a775;
  color: #51a775;
}

main .msg.success i {
  color: #51a775;
}

main .msg.error {
  background-color: #f3c3c3;
  border-left: 4px solid #a75151;
  color: #a75151;
}

main .msg.error i {
  color: #a75151;
}

main .content-header {
  display: flex;
  justify-content: space-between;
}

main .content-header form {
  display: flex;
  justify-content: space-between;
}

main .content-header form .search input, main .content-header form > select {
  background-color: transparent;
  outline: none;
  border: none;
  height: 40px;
  width: 220px;
  border-bottom: 1px solid #d0d3d5;
  padding-right: 25px;
  margin-left: 10px;
}

main .content-header form .search input:hover, main .content-header form .search input:active, main .content-header form > select:hover, main .content-header form > select:active {
  border-bottom: 1px solid #b5b9bd;
}

main .content-header form > select {
  width: 150px;
}

main .content-header form > a {
  text-decoration: none;
  display: inline-flex;
  color: #676d72;
  justify-self: center;
  align-items: center;
  padding: 0 5px;
}

main .content-header form > a:hover {
  color: #4f5357;
}

main .content-header .search label {
  position: relative;
}

main .content-header .search i {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 0;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: auto;
  color: #b5b9bd;
}

main .content-header .filters {
  display: flex;
  position: relative;
  margin-right: 10px;
  margin-bottom: 3px;
  align-items: center;
}

main .content-header .filters a {
  text-decoration: none;
  font-weight: 600;
  color: #4a5361;
  white-space: nowrap;
}

main .content-header .filters a:hover {
  color: #343a44;
}

main .content-header .filters .list {
  display: none;
  top: calc(100% + 5px);
  width: 180px;
  flex-flow: column;
  position: absolute;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
}

main .content-header .filters .list label {
  padding-bottom: 5px;
  font-size: 14px;
}

main .content-header .filters .list input {
  margin-right: 10px;
}

main .content-header .filters .list select {
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  padding: 3px;
  border: 1px solid #dedfe1;
}

main .content-header .filters .list button {
  background: #4a79b4;
  border: 0;
  color: #FFFFFF;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  cursor: pointer;
  border-radius: 4px;
}

main .content-header .filters .list button:hover {
  background: #4672a9;
}

main .content-block {
  background-color: #fff;
  margin-top: 25px;
  padding: 15px;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  width: 100%;
}

main .content-block .block-header {
  position: relative;
  border-bottom: 1px solid #f0f1f2;
  margin-bottom: 20px;
  padding: 0 15px 15px 15px;
  margin-left: -15px;
  margin-right: -15px;
  font-size: 14px;
  font-weight: 500;
}

main .content-block-wrapper {
  display: flex;
  width: 100%;
  padding-top: 25px;
}

main .content-block-wrapper .content-block {
  width: 100%;
  margin: 0 10px;
}

main .content-block-wrapper .content-block:first-child {
  margin-left: 0;
}

main .content-block-wrapper .content-block:last-child {
  margin-right: 0;
}

main .tabs {
    display: flex;
    gap: 0;
    margin: 30px 0 40px 0;
    border-bottom: 3px solid #e9ecef;
    padding: 0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 20px 35px;
    border: 2px solid transparent;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #495057;
    position: relative;
    transition: all 0.3s ease;
    border-right: 1px solid #e9ecef;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn i {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: inherit;
    font-weight: 600;
}

.tab-btn:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.tab-btn.active {
    color: #ffffff !important;
    background: #007bff !important;
    font-weight: 700;
    border-bottom: 4px solid #0056b3 !important;
    border-color: #007bff !important;
    margin-bottom: -3px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    z-index: 1;
}

.tab-content {
    display: none;
    padding: 35px 0;
    animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive tab adjustments */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0 30px 0;
    }

    .tab-btn {
        padding: 15px 20px;
        font-size: 1em;
        min-height: 60px;
        min-width: 120px;
        flex: 0 0 auto;
    }
    
    .tab-btn i {
        font-size: 1.3em;
    }
}

main .dashboard {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

main .dashboard .stat {
  width: 24%;
  padding: 0;
  display: flex;
  flex-flow: wrap;
}

main .dashboard .stat > i {
  display: inline-flex;
  justify-content: center;
  padding: 15px;
  margin: 30px 25px 0 0;
  align-items: center;
  font-size: 18px;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-color: #d5e7fa;
  color: #6e94ba;
}

main .dashboard .stat .data {
  padding: 7px;
  flex: 1;
}

main .dashboard .stat .data h3 {
  font-size: 16px;
  font-weight: 400;
  padding: 15px 15px 0 15px;
}

main .dashboard .stat .data p {
  margin: 0;
  padding: 10px 15px 15px 15px;
  font-size: 24px;
  font-weight: 700;
}

main .dashboard .stat .footer {
  width: 100%;
  border-top: 1px solid #ebeced;
  background-color: #fbfbfb;
  color: #9aa0a5;
  font-size: 14px;
  padding: 10px;
}

main .dashboard .stat .footer i {
  padding-right: 5px;
}

main .form {
  display: flex;
  flex-flow: column;
  width: 500px;
  padding: 20px;
}

main .form input[type="text"], main .form input[type="password"], main .form input[type="datetime-local"], main .form input[type="email"], main .form input[type="number"], main .form textarea, main .form select, main .form input[type="file"] {
  width: 100%;
  padding: 15px 5px;
  margin-bottom: 25px;
  border: 0;
  border-bottom: 1px solid #dedfe1;
}

main .form input[type="text"]:hover, main .form input[type="text"]:active, main .form input[type="password"]:hover, main .form input[type="password"]:active, main .form input[type="datetime-local"]:hover, main .form input[type="datetime-local"]:active, main .form input[type="email"]:hover, main .form input[type="email"]:active, main .form input[type="number"]:hover, main .form input[type="number"]:active, main .form textarea:hover, main .form textarea:active, main .form select:hover, main .form select:active, main .form input[type="file"]:hover, main .form input[type="file"]:active {
  border-bottom: 1px solid #b5b9bd;
}

main .form textarea {
  height: 200px;
}

main .form input[type="checkbox"] {
  width: auto;
  margin: 15px 0 25px 2px;
  transform: scale(1.2);
}

main .form label {
  display: block;
  font-weight: 600;
}

main .form label .required {
  font-style: normal;
  color: #e26060;
}

main .form button {
  background-color: #dedfe1;
  color: #676d72;
  border: 0;
  padding: 5px;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

main .form button:hover {
  background-color: #d6d8da;
}

main .form .comment {
  font-size: 14px;
  color: #888888;
  padding: 10px 0 5px;
  margin: 0;
}

main .top-nav {
  display: flex;
  flex-flow: wrap;
  padding-top: 20px;
}

main .error {
  padding: 15px;
  margin: 0;
}

main .pagination {
  display: flex;
  align-items: center;
  padding: 25px 0;
  gap: 15px;
}

main .pagination a {
  display: inline-flex;
  text-decoration: none;
  background-color: #007bff;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

main .pagination a:hover {
  background-color: #0056b3;
  box-shadow: 0 5px 12px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
  border-color: #004085;
}

main .pagination a:first-child {
  margin-right: 0;
}

main .pagination a:last-child {
  margin-left: 0;
}

main .pagination span {
  font-weight: 700;
  font-size: 15px;
  color: #495057;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #dee2e6;
}

.table {
  overflow-x: auto;
  padding: 0 10px;
}

.table table {
  width: 100%;
  border-collapse: collapse;
}

.table table thead td {
  font-weight: 600;
  font-size: 14px;
  padding: 15px 0;
}

.table table thead td a {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}

.table table thead td i {
  padding-left: 5px;
}

.table table thead tr {
  border-bottom: 1px solid #f0f1f2;
}

.table table tbody tr:first-child td {
  padding-top: 10px;
}

.table table tbody td {
  padding: 8px 0;
}

.table table tbody td .green, .table table tbody td .red, .table table tbody td .grey, .table table tbody td .orange {
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  text-transform: capitalize;
}

.table table tbody td .green {
  background-color: #b8f7d5;
  color: #34aa6b;
}

.table table tbody td .red {
  background-color: #f7caca;
  color: #b64343;
}

.table table tbody td .grey {
  background-color: #e8ebec;
  color: #8e9499;
}

.table table tbody td .orange {
  background-color: #f8eac2;
  color: #dea200;
}

.table table tbody td .mark.yes {
  color: #20c765;
}

.table table tbody td .mark.no {
  color: #d0d3d5;
}

.table table tbody td.user span {
  display: block;
  color: #9aa0a5;
  font-size: 14px;
}

.table table tbody .img {
  width: 40px;
  padding: 5px 0;
  padding-right: 15px;
}

.table table tbody .img span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background-color: #777;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.table table tbody .img img {
  border-radius: 50px;
  width: 30px;
  height: 30px;
}

.table table tbody .rating {
  display: flex;
}

.table table tbody .rating .star, .table table tbody .rating .star-alt {
  font-size: 14px;
  color: #F5A624;
  margin-right: 3px;
}

.table table tbody .rating .star-alt {
  color: #ececec;
}

.table table tbody .rating .rating_value {
  display: none;
}

.login {
  background-color: #f8f9f9;
  padding-top: 50px;
}

.login form {
  padding-top: 100px;
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: 350px;
  align-self: center;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  box-shadow: 0px 0px 7px 0 rgba(0, 0, 0, 0.05);
}

.login form h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.login form input[type="password"], .login form input[type="email"] {
  border: 1px solid #e3e4e6;
  padding: 10px 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.login form input[type="password"]::placeholder, .login form input[type="email"]::placeholder {
  color: #9aa0a5;
}

.login form input[type="submit"] {
  appearance: none;
  background: #1b6fbe;
  border: 0;
  border-radius: 4px;
  color: #FFFFFF;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 5px;
}

.login form input[type="submit"]:hover {
  background: #1862a8;
}

.login form p {
  margin: 0;
  padding: 25px 0 0 0;
}

.link1, .link2 {
  text-decoration: none;
  color: #007bff;
  border-bottom: 2px solid #007bff;
  margin: 0 5px 0 0;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  background: rgba(0, 123, 255, 0.05);
}

.link1:hover, .link2:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
  background: rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.link2 {
  color: #dc3545;
  border-bottom-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.link2:hover {
  color: #c82333;
  border-bottom-color: #c82333;
  background: rgba(220, 53, 69, 0.15);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.title1 {
  color: #6a6e75;
  border-bottom: 1px solid #f0f1f2;
  margin-bottom: 15px;
  padding-bottom: 15px;
  font-weight: 500;
}

.btn, 
a.btn,
.filters .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background: #007bff;
    color: #FFFFFF !important;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    height: 42px;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn:hover, 
a.btn:hover,
.filters .btn:hover {
    background: #0056b3;
    color: #FFFFFF !important;
    box-shadow: 0 5px 12px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn.green {
  background: #4ab46d;
}

.btn.green:hover {
  background: #46a966;
}

.btn.red {
  background: #b44a4a;
}

.btn.red:hover {
  background: #a94646;
}

.btn.alt {
  color: #ffffff;
  border: 1px solid #5c636a;
  background: #6c757d;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
}

.btn.alt:hover {
  background: #5c636a;
  border-color: #565e64;
  color: #ffffff !important;
}

.btn.disabled {
  background: #b1b3b4;
}

.btn.disabled:hover {
  background: #a9abad;
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}

.btn .loader,
.btn .loader::after {
  width: 15px;
  height: 15px;
}

.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.loader,
.loader::after {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.loader {
  position: relative;
  margin: 60px auto;
  border-top: 2px solid rgba(154, 158, 162, 0.2);
  border-right: 2px solid rgba(154, 158, 162, 0.2);
  border-bottom: 2px solid rgba(154, 158, 162, 0.2);
  border-left: 2px solid #9a9ea2;
  transform: translateZ(0);
  animation: loader 1.1s infinite linear;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.mar-y-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mar-y-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mar-y-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mar-y-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.mar-y-5 {
  margin-left: 25px;
  margin-right: 25px;
}

@media screen and (max-width: 1000px) {
  header {
    padding-left: 0;
  }
  .responsive-hidden {
    display: none !important;
  }
  .responsive-width-100 {
    width: 100% !important;
    flex: auto !important;
    flex-basis: 100% !important;
  }

  .responsive-flex-column {
    flex-flow: column;
  }
  .responsive-flex-wrap {
    flex-flow: wrap;
  }
  .responsive-flex {
    display: flex;
  }
  main {
    padding: 70px 7px 20px 7px;
  }
  main .content-header {
    max-width: 100%;
  }
  main .content-header form {
    padding-top: 10px;
  }
  main .content-header form .search input, main .content-header form > select {
    padding-right: 0;
    margin-left: 0;
  }
  main .content-block {
    padding: 5px;
  }
  main .content-block .block-header {
    padding-top: 10px;
  }
  main .dashboard {
    flex-flow: column;
  }
  main .dashboard .stat {
    width: 100%;
  }
  .responsive-pad-1 {
    padding: 5px;
  }
  .responsive-mar-1 {
    margin: 5px;
  }
  .responsive-pad-2 {
    padding: 10px;
  }
  .responsive-mar-2 {
    margin: 10px;
  }
  .responsive-pad-3 {
    padding: 15px;
  }
  .responsive-mar-3 {
    margin: 15px;
  }
  .responsive-pad-4 {
    padding: 20px;
  }
  .responsive-mar-4 {
    margin: 20px;
  }
  .responsive-pad-5 {
    padding: 25px;
  }
  .responsive-mar-5 {
    margin: 25px;
  }
  .responsive-pad-bot-1 {
    padding-bottom: 5px;
  }
  .responsive-pad-top-1 {
    padding-top: 5px;
  }
  .responsive-pad-left-1 {
    padding-left: 5px;
  }
  .responsive-pad-right-1 {
    padding-right: 5px;
  }
  .responsive-pad-x-1 {
    padding-left: 5px;
    padding-right: 5px;
  }
  .responsive-pad-y-1 {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .responsive-mar-bot-1 {
    margin-bottom: 5px;
  }
  .responsive-mar-top-1 {
    margin-top: 5px;
  }
  .responsive-mar-left-1 {
    margin-left: 5px;
  }
  .responsive-mar-right-1 {
    margin-right: 5px;
  }
  .responsive-mar-x-1 {
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .responsive-mar-y-1 {
    margin-left: 5px;
    margin-right: 5px;
  }
  .responsive-pad-bot-2 {
    padding-bottom: 10px;
  }
  .responsive-pad-top-2 {
    padding-top: 10px;
  }
  .responsive-pad-left-2 {
    padding-left: 10px;
  }
  .responsive-pad-right-2 {
    padding-right: 10px;
  }
  .responsive-pad-x-2 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .responsive-pad-y-2 {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .responsive-mar-bot-2 {
    margin-bottom: 10px;
  }
  .responsive-mar-top-2 {
    margin-top: 10px;
  }
  .responsive-mar-left-2 {
    margin-left: 10px;
  }
  .responsive-mar-right-2 {
    margin-right: 10px;
  }
  .responsive-mar-x-2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .responsive-mar-y-2 {
    margin-left: 10px;
    margin-right: 10px;
  }
  .responsive-pad-bot-3 {
    padding-bottom: 15px;
  }
  .responsive-pad-top-3 {
    padding-top: 15px;
  }
  .responsive-pad-left-3 {
    padding-left: 15px;
  }
  .responsive-pad-right-3 {
    padding-right: 15px;
  }
  .responsive-pad-x-3 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .responsive-pad-y-3 {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .responsive-mar-bot-3 {
    margin-bottom: 15px;
  }
  .responsive-mar-top-3 {
    margin-top: 15px;
  }
  .responsive-mar-left-3 {
    margin-left: 15px;
  }
  .responsive-mar-right-3 {
    margin-right: 15px;
  }
  .responsive-mar-x-3 {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .responsive-mar-y-3 {
    margin-left: 15px;
    margin-right: 15px;
  }
  .responsive-pad-bot-4 {
    padding-bottom: 20px;
  }
  .responsive-pad-top-4 {
    padding-top: 20px;
  }
  .responsive-pad-left-4 {
    padding-left: 20px;
  }
  .responsive-pad-right-4 {
    padding-right: 20px;
  }
  .responsive-pad-x-4 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .responsive-pad-y-4 {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .responsive-mar-bot-4 {
    margin-bottom: 20px;
  }
  .responsive-mar-top-4 {
    margin-top: 20px;
  }
  .responsive-mar-left-4 {
    margin-left: 20px;
  }
  .responsive-mar-right-4 {
    margin-right: 20px;
  }
  .responsive-mar-x-4 {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .responsive-mar-y-4 {
    margin-left: 20px;
    margin-right: 20px;
  }
  .responsive-pad-bot-5 {
    padding-bottom: 25px;
  }
  .responsive-pad-top-5 {
    padding-top: 25px;
  }
  .responsive-pad-left-5 {
    padding-left: 25px;
  }
  .responsive-pad-right-5 {
    padding-right: 25px;
  }
  .responsive-pad-x-5 {
    padding-left: 25px;
    padding-right: 25px;
  }
  .responsive-pad-y-5 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .responsive-mar-bot-5 {
    margin-bottom: 25px;
  }
  .responsive-mar-top-5 {
    margin-top: 25px;
  }
  .responsive-mar-left-5 {
    margin-left: 25px;
  }
  .responsive-mar-right-5 {
    margin-right: 25px;
  }
  .responsive-mar-x-5 {
    margin-top: 25px;
    margin-bottom: 25px;
  }
  .responsive-mar-y-5 {
    margin-left: 25px;
    margin-right: 25px;
  }
}

/* pl custom to fix*/

 .table_profile_info {
   overflow: auto;
   width: 100%;
 }

.table_profile_info table {
  border: 1px solid #dededf;
  height: 100%;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 1px;
  text-align: left;
  table-layout: auto;
}

.table_profile_info caption {
  caption-side: top;
  text-align: left;
}

.table_profile_info th {
  border: 1px solid #dededf;
  background-color: #eceff1;
  color: #000000;
  padding: 5px;
}

.table_profile_info td {
  border: 1px solid #fff;
  background-color: #ffffff;
  color: #000000;
  padding: 5px;
}

.table_profile_info th:first-child,
.table_profile_info td:first-child {
  min-width: 250px;
  width: auto;
  max-width: none;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.table_profile_info th,
.table_profile_info td {
  min-width: 120px;
  width: auto;
  padding: 8px 12px;
  word-wrap: break-word;
  word-break: normal;
  vertical-align: top;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
  .table_profile_info td:first-child {
    width: 250px;
    min-width: 250px;
  }
  
  .table_profile_info table {
    width: max-content;
    min-width: 100%;
  }
}

/* Quick Help Sidebar Styles */
.right-sidebar-toggle {
    position: fixed;
    right: 20px;
    top: 80px;
    z-index: 1002;
    background: white;
    color: #3b78bd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: 2px solid #3b78bd;
}

.right-sidebar {
    position: fixed;
    right: -300px;
    top: 60px;
    width: 300px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
}

.right-sidebar.open {
    right: 0;
}

.right-sidebar-toggle:hover {
    background: #3b78bd;
    color: white;
}

.help-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h4 {
    color: #3b78bd;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.help-text {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

/* Add these styles */
.account-details {
    margin-bottom: 20px;
    width: 100%;
}

.account-details .responsive-width-100 {
    width: 100%;
    max-width: 100%;
}

.content-block {
    background-color: #fff;
    margin-top: 25px;
    padding: 15px;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    width: 100%;
}

.form.responsive-width-100 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.wrap-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wrap-item label {
    margin-bottom: 5px;
}

.wrap-item input,
.wrap-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .wrap {
        flex-direction: column;
        gap: 10px;
    }
}

/* Update input styles */
.wrap-item input,
.wrap-item select,
.wrap-item textarea,
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover and focus states */
.wrap-item input:hover,
.wrap-item select:hover,
.wrap-item textarea:hover,
.form input[type="text"]:hover,
.form input[type="email"]:hover,
.form input[type="password"]:hover,
.form input[type="date"]:hover,
.form input[type="number"]:hover,
.form select:hover,
.form textarea:hover {
    border-color: #b3b3b3;
}

.wrap-item input:focus,
.wrap-item select:focus,
.wrap-item textarea:focus,
.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="password"]:focus,
.form input[type="date"]:focus,
.form input[type="number"]:focus,
.form select:focus,
.form textarea:focus {
    border-color: #3b78bd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(59, 120, 189, 0.2);
    outline: none;
}

/* Read-only inputs */
.wrap-item input[readonly],
.form input[readonly] {
    background-color: #f8f9fa;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Update search box styles */
.content-header form .search input,
main .content-header form .search input {
    background-color: white !important;
    border: 1px solid #ced3d6;
    border-radius: 4px;
    padding: 8px 30px 8px 10px;
    width: 100%;
    outline: none;
}

.content-header form .search,
main .content-header form .search {
    position: relative;
    display: flex;
    align-items: center;
}

.content-header form .search i,
main .content-header form .search i {
    position: absolute;
    right: 10px;
    color: #6c757d;
    pointer-events: none;
}

.content-header form .search input:focus,
main .content-header form .search input:focus {
    outline: none;
    border-color: #4a79b4;
    box-shadow: 0 0 0 2px rgba(74, 121, 180, 0.1);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .content-header form .search {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .content-header form .search input {
        width: 100%;
    }
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters .btn {
    white-space: nowrap;
    height: 42px; /* Match height with other filter elements */
    color: #fff; /* Ensure text is white */
    text-decoration: none; /* Remove any default underline */
}

.filters .btn:hover {
    color: #fff; /* Keep text white on hover */
}

/* Update responsive styles */
@media screen and (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .filters .btn {
        width: 100%;
    }

    .filters .filters-wrap {
        width: 100%;
    }
}

.filters .search {
    flex: 1;
}

.filters .filters-wrap {
    position: relative;
    min-width: 200px;
}

.filters .filters-wrap select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #4a5361;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters .filters-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5361;
    pointer-events: none;
}

.filters .filters-wrap select:hover {
    border-color: #4a79b4;
}

.filters .filters-wrap select:focus {
    border-color: #4a79b4;
    box-shadow: 0 0 0 3px rgba(74, 121, 180, 0.1);
    outline: none;
}

/* Style for the select options */
.filters .filters-wrap select option {
    padding: 10px;
    font-size: 14px;
}

/* Enhance search input to match select style */
.filters .search input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    font-size: 14px;
    color: #4a5361;
    transition: all 0.2s ease;
}

.filters .search input:hover {
    border-color: #4a79b4;
}

.filters .search input:focus {
    border-color: #4a79b4;
    box-shadow: 0 0 0 3px rgba(74, 121, 180, 0.1);
    outline: none;
}

.filters .search label i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5361;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .filters .filters-wrap {
        width: 100%;
    }
}

/* Add styling for awaiting review status */
.filters .filters-wrap select option[value="awaiting_review"] {
    color: #e6a117; /* Orange color to indicate pending status */
    font-weight: 500;
}

/* Update table status colors */
.table table tbody td .awaiting {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

/* Add these modal styles to admin.css */
.modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 80%;
    height: 80vh;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow-y: auto;
}

/* Specific styles for misconduct modal */
#createSubstantiatedForm .modal-content,
#editSubstantiatedForm .modal-content {
    width: 80%;
    max-width: 80%;
    height: 80vh;
    margin: 5vh auto;
}

/* Ensure form content scrolls properly */
#createSubstantiatedForm .form,
#editSubstantiatedForm .form {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 20px;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

.misconduct-details {
    margin-top: 20px;
}

.detail-row {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.detail-row label {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

.detail-row span,
.detail-row p {
    color: #666;
    line-height: 1.6;
}

#substantiatedTableBody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

#substantiatedTableBody tr:hover {
    background-color: #dee2e6 !important; /* Even darker gray background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Ensure alternating row colors don't override hover */
#substantiatedTableBody tr:nth-child(even):hover {
    background-color: #dee2e6 !important;
}

/* Add alternating row colors for substantiated table */
#substantiatedTableBody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

#substantiatedTableBody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Update hover styles to ensure they override the alternating colors */
#substantiatedTableBody tr:hover,
#substantiatedTableBody tr:nth-child(odd):hover,
#substantiatedTableBody tr:nth-child(even):hover {
    background-color: #167be0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Keep the total row styling consistent */
#substantiatedTableBody tr.total-row {
    background-color: #f0f0f0;
}

/* Update the table row styles with more specific selectors */
.table_profile_info table tbody tr {
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.table_profile_info table tbody tr:nth-child(odd):not(.total-row) {
    background-color: #e9ecef;
}

.table_profile_info table tbody tr:hover:not(.total-row) {
    background-color: #167be0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    cursor: pointer;
}

/* Make text white on hover */
.table_profile_info table tbody tr:hover:not(.total-row) td,
.table_profile_info table tbody tr:hover:not(.total-row) input[type="text"] {
    color: white !important;
}

/* Input styles for date fields */
.table_profile_info table tbody tr input[type="text"] {
    background-color: transparent !important;
    border: none;
    width: 100px;
    padding: 2px;
}

/* Status styles */
.status-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.status-text {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-active {
    background-color: #4CAF50;
    color: white !important;
}

.status-expired {
    background-color: #dc3545;
    color: white !important;
}

/* Total row styling */
.total-row {
    background-color: #f0f0f0 !important;
}

.total-row td {
    padding: 10px;
}

/* Remove any conflicting styles */
#substantiatedTableBody tr:nth-child(odd),
#substantiatedTableBody tr:nth-child(even),
#substantiatedTableBody tr:hover,
tr.alternate-row {
    background-color: initial;
}

/* Override table cell backgrounds */
.table_profile_info table td {
    background-color: transparent !important;
}

/* Status toggle switch styles */
.status-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.status-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.status-toggle input[type="checkbox"]:checked + .toggle-label {
    background: #4CAF50;
}

.status-toggle input[type="checkbox"]:checked + .toggle-label .toggle-handle {
    transform: translateX(30px);
}

.status-text {
    font-weight: 500;
    color: #666;
}

.status-toggle input[type="checkbox"]:checked ~ .status-text {
    color: #4CAF50;
}

/* Add alternating row styles */
.table table tbody tr {
    background-color: #ffffff;
}

.table table tbody tr.alternate-row {
    background-color: #e9ecef;
}

.table table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Add alternating row styles for tickets table */
.tickets .tickets-list .ticket {
    background-color: #ffffff;
}

.tickets .tickets-list .ticket:nth-child(odd) {
    background-color: #e9ecef;
}

.tickets .tickets-list .ticket:hover {
    background-color: #f5f5f5;
}

/* Keep existing hover styles */
.tickets .tickets-list .ticket:hover i {
    color: #bfbfbf;
}

/* Add alternating row styles for comments table */
.table table tbody tr {
    background-color: #ffffff;
}

.table table tbody tr.alternate-row {
    background-color: #e9ecef;
}

.table table tbody tr:hover {
    background-color: #167be0 !important;
    color: white;
    cursor: pointer;
}

/* Make text white on hover */
.table table tbody tr:hover td,
.table table tbody tr:hover span,
.table table tbody tr:hover a {
    color: white !important;
}

/* Add alternating row styles for categories table */
.table table tbody tr {
    background-color: #ffffff;
}

.table table tbody tr.alternate-row {
    background-color: #e9ecef;
}

.table table tbody tr:hover {
    background-color: #167be0 !important;
    color: white;
    cursor: pointer;
}

/* Make text white on hover */
.table table tbody tr:hover td,
.table table tbody tr:hover span,
.table table tbody tr:hover a {
    color: white !important;
}

/* Add alternating row styles for quickhelp table */
.table table tbody tr {
    background-color: #ffffff;
}

.table table tbody tr.alternate-row {
    background-color: #e9ecef;
}

.table table tbody tr:hover {
    background-color: #167be0 !important;
    color: white;
    cursor: pointer;
}

/* Make text white on hover */
.table table tbody tr:hover td,
.table table tbody tr:hover span,
.table table tbody tr:hover button {
    color: white !important;
}

/* Update status badge styles with more contrast */
.table table tbody td span.green {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

.table table tbody td span.red {
    background-color: #f44336;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

.table table tbody td span.orange {
    background-color: #ff9800;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

.table table tbody td span.blue {
    background-color: #1976d2;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

.table table tbody td span.grey {
    background-color: #757575;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: capitalize;
}

/* Add styles for approval elements */
.approve-btn {
    background-color: #28a745;
    color: white;
}

.approve-btn:hover {
    background-color: #218838;
}

.btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.btn.disabled:hover {
    background-color: #cccccc;
}

.pending-banner {
    background-color: #dc3545;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add these styles for the new textarea fields */
.wrap-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
    background-color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wrap-item textarea:hover {
    border-color: #b3b3b3;
}

.wrap-item textarea:focus {
    border-color: #4a79b4;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 
                0 0 0 3px rgba(74, 121, 180, 0.1);
    outline: none;
}

/* Style for the labels */
.wrap-item label[for="significant"],
.wrap-item label[for="not_significant"] {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Add icons to the labels */
.wrap-item label[for="significant"]::before,
.wrap-item label[for="not_significant"]::before {
    font-family: "Font Awesome 5 Free";
    margin-right: 8px;
    font-weight: 900;
}

.wrap-item label[for="significant"]::before {
    content: "\f005"; /* Star icon */
    color: #dc3545;
}

.wrap-item label[for="not_significant"]::before {
    content: "\f06a"; /* Exclamation circle icon */
    color: #4a79b4;
}

/* Add subtle background colors to distinguish the fields */
.wrap-item textarea[name="significant"],
.wrap-item[data-field="significant"] .editor-container {
    border-left: 4px solid #dc3545;
    background-color: #fff8f8;
}

.wrap-item textarea[name="not_significant"],
.wrap-item[data-field="not_significant"] .editor-container {
    border-left: 4px solid #4a79b4;
    background-color: #f8fafd;
}

/* Add placeholder styles */
.wrap-item textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Add character count display */
.wrap-item .char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wrap-item textarea {
        min-height: 100px;
    }
}

/* Add these styles for the rich text editor */
.editor-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.formatting-toolbar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.format-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background-color: #e9ecef;
    color: #000;
}

.format-btn.active {
    background-color: #e9ecef;
    color: #4a79b4;
}

.editor {
    min-height: 150px;
    padding: 12px;
    background-color: #fff;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
    width: 100%;
}

/* Style for significant editor */
.wrap-item[data-field="significant"] .editor-container {
    border-left: 4px solid #dc3545;
}

.wrap-item[data-field="significant"] .editor {
    background-color: #fff8f8;
}

/* Style for not significant editor */
.wrap-item[data-field="not_significant"] .editor-container {
    border-left: 4px solid #4a79b4;
}

.wrap-item[data-field="not_significant"] .editor {
    background-color: #f8fafd;
}

/* Style for formatted content */
.editor b, .editor strong {
    font-weight: bold;
}

.editor i, .editor em {
    font-style: italic;
}

.editor u {
    text-decoration: underline;
}

.editor ul {
    padding-left: 20px;
    margin: 10px 0;
}

.editor li {
    margin: 5px 0;
}

/* Placeholder style */
.editor:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

/* Character count position */
.editor-container .char-count {
    padding: 4px 8px;
    text-align: right;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 12px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .formatting-toolbar {
        flex-wrap: wrap;
    }
    
    .editor {
        min-height: 100px;
    }
}

/* Add these styles to admin.css */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch label:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + label {
    background-color: #4a79b4;
}

.toggle-switch input:checked + label:after {
    transform: translateX(20px);
}

/* Hover effects */
.toggle-switch label:hover {
    background-color: #b3b3b3;
}

.toggle-switch input:checked + label:hover {
    background-color: #3a69a4;
}

/* Comment Form Styles */
.comment-form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.comment-form-section h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 15px;
}

.comment-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.comment-form .form-group {
    position: relative;
    padding: 0;
    margin: 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background: #f8fafc;
    border-bottom: none;
    display: block;
    margin: 0; /* Remove any margin */
}

.comment-form textarea:focus {
    outline: none;
    border-color: #4a79b4;
    box-shadow: 0 0 0 3px rgba(74,121,180,0.1);
}

.comment-form .toolbar {
    display: flex;
    gap: 2px;
}

.comment-form .toolbar i {
    padding: 6px 8px;
    cursor: pointer;
    color: #4a5568;
}

.comment-form .form-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-form .submit-btn {
    background: #4a79b4;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 0 0 4px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.comment-form .submit-btn:hover {
    background: #3b6293;
}

.comment-form .submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Enhanced Comment Form Styles */
.comment-form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-form .form-group {
    position: relative;
}

.comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background: #f8fafc;
    border-bottom: none;
    display: block;
}

.comment-form .controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 4px 4px;
    padding: 4px;
    margin-top: -1px;
}

/* Modal styles with Chrome fixes */
.modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 95%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000001;
}

/* Fix for Chrome dropdown visibility */
.modal-content select {
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    opacity: 1 !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px !important;
    border-radius: 4px !important;
    width: 100% !important;
    font-size: 14px !important;
}

.modal-content select option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 8px !important;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

/* Add styles for the admin logo */
.header-logo {
    height: 35px;
    width: auto;
    vertical-align: middle;
}

/* Quick Help Create Button */
button[name="create"].btn {
    background-color: #4a79b4;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[name="create"].btn:hover {
    background-color: #3b6293;
}

/* Add these styles for misconduct.php */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.info-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.info-item span {
    color: #333;
}

/* File actions and buttons */
.file-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.file-actions .btn-sm,
.ticket-actions .btn-sm {
    min-width: 80px;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9em;
    background-color: #3498db;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-actions .btn-sm:hover,
.ticket-actions .btn-sm:hover {
    background-color: #2980b9;
    color: white;
}

.file-actions .btn-danger {
    background-color: #dc3545;
}

.file-actions .btn-danger:hover {
    background-color: #c82333;
    color: white;
}

/* Folder Structure Styles */
.folder-structure {
    margin: 20px 0;
}

.folder {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.folder-header {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    position: relative;
}

.folder-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.folder-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.folder-header i {
    color: #ffd700;
    font-size: 1.2em;
}

.folder-name {
    font-weight: 600;
    color: #333;
}

.file-count {
    color: #666;
    font-size: 0.9em;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: capitalize;
}

/* Status colors */
.status-record_found {
    background-color: #4CAF50;
    color: white;
}

.status-under_pss_review {
    background-color: #2196F3;
    color: white;
}

.status-no_record_found {
    background-color: #f44336;
    color: white;
}

.status-pending {
    background-color: #ff9800;
    color: white;
}

.status-closed {
    background-color: #757575;
    color: white;
}

.folder-content {
    display: none;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.folder.active .folder-content {
    display: block;
}

/* File item styles */
.file-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.file-item:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.file-item .file-info-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-item i {
    color: #666;
    min-width: 20px;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1;
}

.file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.file-info {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    color: #666;
    gap: 4px;
}

/* Ensure folder toggle works with buttons */
.folder-header .btn,
.folder-header a {
    position: relative;
    z-index: 2;
}

.folder-header .btn:hover {
    transform: translateY(-1px);
}

/* Default state - all folders closed */
.folder .folder-content {
    display: none;
}

/* Active state - only active folders open */
.folder.active .folder-content {
    display: block;
}

.ticket-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.ticket-details {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.ticket-divider {
    margin: 15px 0;
}

/* Update table cell alignment for actions column */
.table_profile_info table td:last-child {
    text-align: right;
}

/* Ensure buttons in table cells maintain consistent spacing */
.table_profile_info table td .btn {
    margin-left: 5px;
}


/* Add these styles to your existing CSS */
.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  margin: 0 2px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


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

.disclosed-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

.disclosed-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-popup:hover {
  background: rgba(0, 0, 0, 0.7);
}

#previewPopup iframe:not([src=""]) {
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAzOCAzOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHJva2U9IiM2NjYiPg0KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMSkiIHN0cm9rZS13aWR0aD0iMiI+DQogICAgICAgICAgICA8Y2lyY2xlIHN0cm9rZS1vcGFjaXR5PSIuNSIgY3g9IjE4IiBjeT0iMTgiIHI9IjE4Ii8+DQogICAgICAgICAgICA8cGF0aCBkPSJNMzYgMThjMC05Ljk0LTguMDYtMTgtMTgtMTgiPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlVHJhbnNmb3JtDQogICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSINCiAgICAgICAgICAgICAgICAgICAgdHlwZT0icm90YXRlIg0KICAgICAgICAgICAgICAgICAgICBmcm9tPSIwIDE4IDE4Ig0KICAgICAgICAgICAgICAgICAgICB0bz0iMzYwIDE4IDE4Ig0KICAgICAgICAgICAgICAgICAgICBkdXI9IjFzIg0KICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICAgICAgICAgICAgPC9wYXRoPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+') center center no-repeat;
}

 /* Add styles for the disclosed popup */
 .disclosed-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
}

.disclosed-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

.disclosed-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-popup:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Add styles for the folder structure */
.folder {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 4px;
}

.folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f5f5f5;
  cursor: pointer;
  user-select: none;
}

.folder-content {
  display: none;
  padding: 15px;
  border-top: 1px solid #ddd;
}

.folder.active .folder-content {
  display: block;
}

.folder-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Add this HTML structure for the preview popup */
#previewPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
}

#previewPopup .disclosed-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#previewPopup iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#previewPopup .close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

#previewPopup .close-popup:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Add loading indicator */
#previewPopup iframe:not([src=""]) {
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAzOCAzOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHJva2U9IiM2NjYiPg0KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMSkiIHN0cm9rZS13aWR0aD0iMiI+DQogICAgICAgICAgICA8Y2lyY2xlIHN0cm9rZS1vcGFjaXR5PSIuNSIgY3g9IjE4IiBjeT0iMTgiIHI9IjE4Ii8+DQogICAgICAgICAgICA8cGF0aCBkPSJNMzYgMThjMC05Ljk0LTguMDYtMTgtMTgtMTgiPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlVHJhbnNmb3JtDQogICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSINCiAgICAgICAgICAgICAgICAgICAgdHlwZT0icm90YXRlIg0KICAgICAgICAgICAgICAgICAgICBmcm9tPSIwIDE4IDE4Ig0KICAgICAgICAgICAgICAgICAgICB0bz0iMzYwIDE4IDE4Ig0KICAgICAgICAgICAgICAgICAgICBkdXI9IjFzIg0KICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPg0KICAgICAgICAgICAgPC9wYXRoPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+') center center no-repeat;
}

/* Add these new styles for status display */
.status-banner {
  margin: -20px -20px 20px -20px;
  padding: 10px 20px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  text-align: right;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.status-banner span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Update select[name="status"] styles */
select[name="status"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  width: 100%;
}

select[name="status"] option {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 4px;
  color: white;
}

select[name="status"]:hover {
  border-color: #4a79b4;
}

select[name="status"]:focus {
  outline: none;
  border-color: #4a79b4;
  box-shadow: 0 0 0 2px rgba(74, 121, 180, 0.1);
}

/* Add these status-specific background colors */
.status-open { background-color: #4caf50 !important; }
.status-closed { background-color: #4cafac !important; }
.status-under_pss_review { background-color: #ffc107 !important; }
.status-open_user_review { background-color: #4caf50 !important; }
.status-closed-disclosed-crown { background-color: #4cafac !important; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 95%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

/* Folder Styles */
.folder {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.folder-header {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.folder-header:hover {
    background: #e9ecef;
}

.folder.expanded {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.folder.expanded .folder-header {
    border-bottom: 1px solid #e9ecef;
}

.folder-content {
    display: none;
    padding: 15px;
    background: #fff;
}

.folder.expanded .folder-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Group Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.button-group .btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.button-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Preview Modal Styles */
#previewPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

#previewPopup .modal-content {
    width: 95%;
    height: 90%;
    margin: 2% auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#previewPopup .preview-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#previewFrame {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10px;
        padding: 20px;
        width: calc(100% - 20px);
    }

    .button-group .btn {
        padding: 10px;
        font-size: 1em;
    }
}

/* Add these significance button styles */
.btn-lg {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-lg i {
    font-size: 18px;
}

/* Significance button */
.btn-lg[onclick*="'yes'"] {
    background-color: #dc3545;
    color: white;
}

.btn-lg[onclick*="'yes'"]:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Not Significant button */
.btn-lg[onclick*="'no'"] {
    background-color: #28a745;
    color: white;
}

.btn-lg[onclick*="'no'"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* Unset button */
.btn-lg[onclick*="null"] {
    background-color: #6c757d;
    color: white;
}

.btn-lg[onclick*="null"]:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* Significance toggle buttons */
.significance-toggle .btn-sm {
    padding: 2px 8px;
    transition: all 0.3s ease;
}

.significance-toggle .btn-sm[onclick*="'yes'"].active {
    background-color: #dc3545;
    color: white;
}

.significance-toggle .btn-sm[onclick*="'no'"].active {
    background-color: #28a745;
    color: white;
}

.significance-toggle .btn-sm:not(.active) {
    background-color: #3575b5;
    color: white;
}

/* Modal base styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999999101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;

}

/* Specific styles for createEntryModal */
#createEntryModal .modal-content {
    width: 80%;
    max-width: 80%;
    height: 80vh;
    margin: 5vh auto;
    padding: 30px;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
    z-index: 999999100;
}

#createEntryModal .form {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Responsive adjustments for createEntryModal */
@media screen and (max-width: 768px) {
    #createEntryModal .modal-content {
        width: 95%;
        max-width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 20px;
    }
}

/* Specific styles for createEntryModal and misconductModal */
#createEntryModal .modal-content,
#misconductModal .modal-content {
    width: 80%;
    max-width: 80%;
    height: 80vh;
    margin: 5vh auto;
    padding: 30px;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
}

#createEntryModal .form,
#misconductModal .form {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Responsive adjustments for modals */
@media screen and (max-width: 768px) {
    #createEntryModal .modal-content,
    #misconductModal .modal-content {
        width: 95%;
        max-width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 20px;
    }
}

/* Specific styles for createEntryModal, misconductModal, and documentEditorModal */
#createEntryModal .modal-content,
#misconductModal .modal-content,
#documentEditorModal .modal-content {
    width: 80%;
    max-width: 80%;
    height: 80vh;
    margin: 5vh auto;
    padding: 30px;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
}

#createEntryModal .form,
#misconductModal .form,
#documentEditorModal .form {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Additional styles for document editor content */
#documentEditorModal .editor-container {
    max-height: calc(80vh - 200px); /* Account for header and buttons */
    overflow-y: auto;
}

#documentEditorModal .editor-toolbar {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Responsive adjustments for modals */
@media screen and (max-width: 768px) {
    #createEntryModal .modal-content,
    #misconductModal .modal-content,
    #documentEditorModal .modal-content {
        width: 95%;
        max-width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 20px;
    }
    
    #documentEditorModal .editor-container {
        max-height: calc(90vh - 180px);
    }
}

/* Three-column layout for specific fields in misconduct forms */
.form .three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.form .three-column-grid .column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form .three-column-grid .wrap-item {
    margin: 0;
    width: 100%;
}

/* Ensure proper spacing and alignment */
.form .three-column-grid label {
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form .three-column-grid input,
.form .three-column-grid select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .form .three-column-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .form .three-column-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Multi-select styles */
.multi-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.multi-select option {
  padding: 8px;
  margin: 2px 0;
  border-radius: 3px;
  cursor: pointer;
}

.multi-select option:checked {
  background: linear-gradient(0deg, #4a79b4 0%, #4a79b4 100%);
  color: white;
}

.multi-select option:hover {
  background-color: #f8f9fa;
}


#createEntryModal .modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 2vh auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 1000px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
}

#createEntryModal .form {
  margin: 0;
  padding: 0;
  height: 100%;
}

@media screen and (max-width: 768px) {
  #createEntryModal .modal-content {
      width: 95%;
      margin: 10px auto;
  }
}

/* Add this to your existing styles */
.modal-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-content-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 80px;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}