:root {
    --background-color: #f4f4f9;
    --text-color: #333;
    --card-background-color: #fff;
    --button-background-color: #087FAF;
    --button-text-color: #fff;

body.dark-mode {
    --background-color: #1e1e1e;
    --text-color: #f4f4f9;
    --card-background-color: #3a3a3a; /* Gray background for dark mode */
    --form-background-color: #2a2a2a; /* Dark gray background for form */
    --button-background-color: #444;
    --button-text-color: #f4f4f9;
}

#file-drop-area {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    text-align: center;
}

#file-drop-area svg {
    margin-bottom: 10px;
    color: #666;
    transition: color 0.3s;
}

#file-drop-area.dragover svg {
    color: #333;
}

#file-drop-area.dragover {
    background-color: #f0f0f0;
}

body.dark-mode input,
body.dark-mode select {
    background-color: #3a3a3a; /* Darker gray for inputs in dark mode */
    color: #f4f4f9; /* Light text color for contrast */
    border: 1px solid #555; /* Darker border for inputs */
}
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.toggle-text {
  margin-left: 10px;
  font-size: 16px;
  color: var(--text-color);
}
/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: #595959;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#generated-name-card, form, #generated-names {
    background-color: var(--card-background-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    margin-left: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #087FAF;
    margin-bottom: 20px;
}

p {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 20px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

form, #generated-name-card {
    background-color: var(--card-background-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    margin: 0 10px;
}

body.dark-mode form {
    background-color: var(--form-background-color);
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #444;
}

input, select {
    font-size: 16px;
    padding: 10px;
    margin-bottom: 20px; /* Larger margin for the bottom of generated codes */
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 11px;
}

.add-link {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.3s;
}


button[type="submit"] {
    background-color: #FFD700; /* Yellow */
    color: #000; /* Black */
    font-weight: bold;
}

#reset-button {
    background-color: #D3D3D3; /* Orange */
    color: #000;
}

#copy-button {
    background-color: #D3D3D3; /* Light Grey */
    color: #000;
}

#clear-list-button {
    background-color: #ec4141; /* Red */
    color: #fff;
}

button:not([type="submit"]):hover {
background-color:#FFD700 ;
    transform: scale(1.05);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#code {
    text-align: left;
    font-size: 20px;
    color: #111; /* Close to black */
    padding: 10px; /* Add padding for spacing */
    margin-bottom: 20px; /* Add margin for spacing */
}

#code div {
    margin-bottom: 10px; /* Add space between each code or name */
    margin-bottom: 20px; /* Add margin for spacing */

}

body.dark-mode #code {
    color: #f4f4f9; /* Light gray for dark mode */
    border-bottom: 1px solid #ddd;
}

#loading-bar-container {
    width: 100%;
    height: 12px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

#loading-bar {
    height: 100%;
    width: 0%;
    background-color: #087FAF;
    transition: width 0.5s ease, background-color 0.5s;
    animation: pulsate 1.5s infinite alternate;
}

@keyframes pulsate {
    0% {
        background-color: #087FAF;
        transform: scaleX(1);
    }
    50% {
        background-color: #0EB967;
        transform: scaleX(1.05);
    }
    100% {
        background-color: #087FAF;
        transform: scaleX(1);
    }
}

#codes {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

#codes div ul {margin-bottom: 10px;}

#generated-names h2 {
    text-align: center;
    color: #171717;
    margin-bottom: 10px;
}

#generated-names ul {
    list-style-type: none;
    padding: 0;
}

#generated-names li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

#generated-names li:last-child {
    border-bottom: none;
}

#add-content-type-button {margin-bottom: 15px; color: #2196F3!important;}
#add-subject-button {margin-bottom: 15px; color: #2196F3!important;}
#add-category-button {margin-bottom: 15px; color: #2196F3!important;}
