/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Baloo+Paaji+2:wght@400..800&display=swap");


/* COLOR VARIABLES */
:root {
    --primary-color: #046799;
    --secondary-color: #535354;
    --background-color: #EFEFEF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --white-color: #FFF;
    --black-color: #000;
    --input-border-color: #E3E4E6;
    --transition-3s: 0.3s;
}
/* GLOBAL STYLES */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Baloo Paaji 2", sans-serif;
}
.dashboard-container {
    width: 100%;
    gap: 20px;
    min-height: 50vh
}

.dashboard-container img {
    width: 100%;
}

.dashboard-container .control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    padding-top: 10px;
}

.dashboard-container h2 {
    color: #a31313;
    font-size: 30px;
}


.dashboard-container .control-head a {
    padding: 10px;
    color: #fff;
    background: #a31313;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: -2px;
    margin-right: 20px
}

.actions {
    width: 100%;
    background: #a31313;
    display: flex;
    padding: 0 0 0 50px;
}

.actions a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding-right: 15px;
    padding-left: 15px;
    border-right: 2px solid #fff;
    border-radius: 10px;
}

.actions a:last-child {
    border-right: none;
}

@media only screen and (max-width: 592px) {
  .dashboard-container h2 {
    font-size: 25px;
}
}

@media only screen and (max-width: 496px) {
  .dashboard-container .control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 20px;
}
  .dashboard-container h2 {
    font-size: 20px;
}
.actions {
  padding-left: 10px;
}
.actions a{
  font-size: 15px;
}
}


.stats {
    display: flex;
    padding: 50px;
    gap: 100px;
}

.stats .card {
    gap: 15px;
    width: 100%;
}

.card h5 {
    font-size: 50px;
    color: #a31313;
}
.card hr {
  border: 2px solid #a31313;
}
.card p {
    color: #000;
   font-size: 20px;
}

table {
    margin: auto;
    background: #dfdfdf;
    margin-top: 50px;
    border-collapse: collapse;
    min-width: 800px;
    overflow-x: auto;
}


table thead th {
    background: #a31313;
    padding: 15px;
    color: #fff;
    font-size: 20px;
    text-align: center;

}

table td {
    font-size: 20px;
    text-align: center;
    padding: 10px;
}

table tr:nth-child(even) {
    background: #c0c0c0;
}

/* Container styling */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    max-width: 800px;
    margin-top: 50px;
    padding: 20px;
}

/* Dropzone styling */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 16rem; /* h-64 in Tailwind */
    border: 2px dashed #a31313; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.dropzone:hover {
    opacity: .8;
}


/* Dropzone content styling */
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem; /* pt-5 */
    padding-bottom: 1.5rem; /* pb-6 */
}

/* Icon styling */
.icon {
    width: 4rem; /* w-8 */
    height: 4rem; /* h-8 */
    margin-bottom: 1rem; /* mb-4 */
    color: #a31313; /* text-gray-500 */
}

/* Text styling */
.text {
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 20px; /* text-sm */
    color: #a31313; /* text-gray-500 */
}

.bold {
    font-weight: 600; /* font-semibold */
}

.subtext {
    font-size: 15px; /* text-xs */
    color: #3b3b3b; /* text-gray-500 */
}

/* Hide the file input */
.file-input {
    display: none;
}

label {
    text-align: left;
    width: 100%;
    padding-left: 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

label a {
  font-style: italic;
  color: #a31313;
}

.label-description {
    color: #535354;
    font-size: 15px;
    margin-top: -5px;
    padding-left: 10px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
}

input, textarea, select {
    padding: 5px;
    padding-left: 45px;
    border: 3px solid #ddd;
    background: #eee;
    font-size: 17px;
    transition: .1s ease-in-out;
    outline: none;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 10px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input:hover, textarea:hover, select:hover {
    border: 3px solid #c5c5c5;
}

input:focus, textarea:focus, select:focus {
    border: 3px solid #a31313;
}
.checkbox-container {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.ios-checkbox {
  --checkbox-size: 28px;
  --checkbox-color: #3b82f6;
  --checkbox-bg: #dbeafe;
  --checkbox-border: #93c5fd;

  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  width: fit-content;
  align-items: center;
}

.ios-checkbox input {
  display: none;
}

.checkbox-wrapper {
  position: relative;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid var(--checkbox-border);
  background: white;
  transition: all 0.2s ease;
}

.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: white;
  transform: scale(0);
  transition: all 0.2s ease;
}

.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* Checked State */
.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
  background: var(--checkbox-color);
  border-color: var(--checkbox-color);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}

.ios-checkbox input:checked + .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}

/* Hover Effects */
.ios-checkbox:hover .checkbox-wrapper {
  transform: scale(1.05);
}

/* Active Animation */
.ios-checkbox:active .checkbox-wrapper {
  transform: scale(0.95);
}

/* Focus Styles */
.ios-checkbox input:focus + .checkbox-wrapper .checkbox-bg {
  box-shadow: 0 0 0 4px var(--checkbox-bg);
}

.ios-checkbox.red {
  --checkbox-color: #ef4444;
  --checkbox-bg: #fee2e2;
  --checkbox-border: #fca5a5;
}

/* Animation */
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.ios-checkbox input:checked + .checkbox-wrapper {
  animation: bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    font-size: 18px;
    bottom: 34px;
    left: 12px;
    color: #700000;
    border-right: 2px solid #d3d3d3;
    padding-right: 10px;
}

.btn {
    background: #a31313;
    padding: 10px;
    width: 100%;
    color: #fff;
    border: none;
    outline: none;
    margin-top: 20px;
    font-size: 18px;
    margin-bottom: 50px;
    cursor: pointer;
}

.row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: end;
}

@media only screen and (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}

.input-group {
    width: 100%;
}

.content-container {
    display: flex;
    width: 100%;
    padding: 50px;
    gap: 100px;
}

.content-container .sidebar {
    display: flex;
    flex-direction: column;
    background: #dadada;
    border-radius: 15px;
}

.content-container form {
    width: 100%;
    margin: 0;
}

.form-input {
    width: 100%;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.controls button {
    width: fit-content;
}

@media only screen and (max-width: 600px) {
  .controls {
    flex-direction: column;
  }
  .controls div {
    width: 100%;
  }
  .controls .btn {
    margin-bottom: 0;
  }
}

.navigates{
    display: flex;
    gap: 10px;
}

.navigates .navigate {
    background: #a31313;
    padding: 12px;
    color: #fff;
    border: none;
    outline: none;
    font-size: 18px;
    cursor: pointer;
    width: fit-content;
}

.navigates .navigate.disabled {
    background: #919191;
    cursor: not-allowed;
}

.counter {
    display: flex;
    justify-content: end;
    align-items: start;
    margin-top: -20px;
}

.counter p {
    font-size: 17px;
    color: #1b1b1b;
}

label span {
    color: red;
}

.files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.files .uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #e0e0e0;
}

.files .uploaded-file p {
    font-size: 20px;
}

.files .uploaded-file p span {
    margin-right: 5px;
    background: #a31313;
    border-radius: 5px;
    padding: 5px;
    color: #fff;
    font-size: 18px;
}

.files .uploaded-file button {
    background: #a31313;
    border: none;
    outline: none;
    height: 100%;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
}

/* From Uiverse.io by Na3ar-17 */ 
.radio-input {
  display: flex;
  gap: 10px;
  padding: 10px;
  padding-bottom: 15px;
}

.radio-input * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.radio-input label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0px 20px;
  width: 220px;
  cursor: pointer;
  height: 50px;
  position: relative;
}

.radio-input label::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 45px;
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 10px;
  border: 2px solid transparent;
}
.radio-input label:hover::before {
  transition: all 0.2s ease;
  background-color: #d4d4d4;
}

.radio-input .label:has(input:checked)::before {
  background-color: #a31313;
  border-color: #d84343;
  height: 50px;
}
.radio-input .label .text {
  color: #000;
}
.radio-input .label:has(input:checked) .text {
    color: #fff;
}

.radio-input .label input[type="radio"] {
  background-color: #a31313;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.radio-input .label input[type="radio"]:checked {
  background-color: #700000;
  -webkit-animation: puls 0.7s forwards;
  animation: pulse 0.7s forwards;
}

.radio-input .label input[type="radio"]:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: #fff;
  transform: scale(0);
}

.radio-input .label input[type="radio"]:checked::before {
  transform: scale(1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}


.divs {
  padding: 50px;
}

.divs p {
  font-size: 18px;
}

.divs h3 {
  font-size: 30px;
}

.divs .big-div {
  width: 100%;
  display: block;
  padding: 50px;
  background: #e6e6e6;
}

.divs .small-divs {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.divs .small-divs .first-small {
  padding: 50px;
  width: 30%;
    background: #e6e6e6;
}

.divs .small-divs .second-small {
  padding: 50px;
  width: 70%;
  background: #e6e6e6;
}

@media only screen and (max-width: 1000px){
  .divs .small-divs {
  flex-direction: column;
}
  .divs .small-divs .first-small, .divs .small-divs .second-small {
    width: 100%;
  }
}


.action-btn {
  text-decoration: none;
  padding: 1px 10px;
  margin: 3px;
  color: #a31313;
  border-radius: 5px;
}

.action-btn:hover {
  background: #c9c9c9;
}

/* Add to your existing styles */
.word-count-warning {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 5px;
}

.word-count-valid {
    color: #5cb85c;
}

.file-required {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 5px;
}

footer {
  background: #c5c5c5;
  padding: 50px;
  margin-top: 30px;
}

footer h2 {
  text-align: center;
  font-size: 30px;
  color: #a31313;
  margin-bottom: 15px;
}

footer hr {
  border: 1px solid #979797;
  border-radius: 10px;
  width: 35%;
  margin: auto;
  margin-top: 30px;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

footer .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  color: #a31313;
  text-decoration: none;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  transition: .3s ease-in-out;
}

footer .social-icon:hover {
  background: #a31313;
  color: #fff;
  transform: translateY(-5px);
}

footer p {
  color: rgb(77, 77, 77);
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
}

        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 500px;
            border-radius: 5px;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .close:hover {
            color: black;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        .error {
            color: red;
            font-size: 14px;
        }
        small {
    font-size: 0.8em;
    color: #666;
}

.pagination {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .pagination-info {
        text-align: center;
        font-size: 14px;
        color: #666;
    }
    .pagination-links {
        display: flex;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
    }
    .pagination a, .pagination span {
        padding: 8px 12px;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #a31313;
        background: white;
    }
    .pagination a:hover {
        background: #f0f0f0;
    }
    .pagination a.active {
        background: #a31313;
        color: white;
        border-color: #a31313;
    }
    .filter-container {
        display: flex;
        width: 100%;
        gap: 20px;
        margin-bottom: 20px;
    }
    .form-input {
        display: flex;
        align-items: center;
        gap: 10px;
    }


.status-pending { color: #FFA500; }
.status-accepted { color: #4CAF50; }
.status-rejected { color: #F44336; }
.suggestion-accept { color: #4CAF50; }
.suggestion-reject { color: #F44336; }
.suggestion-none { color: #777; }

 .error-message {
            color: red;
            margin: 20px ;
            padding: 10px;
            background-color: #ffeeee;
            border: 1px solid #ffcccc;
            border-radius: 4px;
        }
        .success-message {
            color: green;
            margin: 20px;
            padding: 10px;
            background-color: #eeffee;
            border: 1px solid #ccffcc;
            border-radius: 4px;
        }

.modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.3);
}
.modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 30px 30px 20px 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
}
.close {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #a31313;
    cursor: pointer;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 8px; }