body {
    background-color: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }
}

/* LOADER */
.loader {
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    margin: auto auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2s infinite ease-in-out;
    animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

@-webkit-keyframes sk-bounce {
    0%, 100% {
        -webkit-transform: scale(0);
    }
    50% {
        -webkit-transform: scale(1);
    }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0);
        -webkit-transform: scale(0);
    }
    50% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}


.table_loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.table_loader span {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.check_list_loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.button_loader {
    display: inline-block;
    width: 13px; /* Adjust size */
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.73);
    border-top-color: #fa6900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


.users_list td {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.check_list_container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Adds spacing between elements */
    width: 100%; /* Ensure it spans full width */
    padding-top: 50px;
}

.z2.no_chrome_card h1 {
    text-align: center;
}

.check_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.check_list ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 50vw;
    gap: 8px;
}

.check_list li {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: 8px;
}

.check_list li span {
    flex-shrink: 0;
}


@media screen and (max-width: 500px) {
    .check_list_container {
        min-height: 200px;
    }

    .check_list {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .check_list ul {
        max-width: 100%;
    }
}


.actions {
    display: flex;
    gap: 0.8rem;

}

.show_more_button {
    all: unset;
    font-size: 16px;
    cursor: pointer;

    display: inline-block;
    transition: color 0.2s ease-in-out;
}

.show_more_button:hover {

    text-decoration: underline;
}

.show_more_button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

a[role="button"].z2 {
    cursor: pointer;
    background-color: transparent;
    text-decoration: none;
    border: 2px solid;
    min-width: 40px;
}

button.z2.primary {
    min-width: 62px;
    cursor: pointer;

}

.remove_button {
    all: unset;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease-in-out;
    font-size: 17px;
}

.remove_button:hover {
    color: #fa6900;
}

th {
    text-align: left;
}

form {
    display: flex;
    gap: 1rem;
}


form input[type="email"],
form input[type="text"],
form select {
    border: none;
    border-bottom: 2px solid #505050; /* Light grey underline */
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #505050;
    padding: 5px 0;
    min-width: 200px;
    width: 100%;

}

form input[type="email"].input_error,
form input[type="text"].input_error,
form select.input_error {
    border-bottom: 2px solid #e61a18 !important;

}

.input_error:focus {
    border-bottom: 2px solid #e61a18 !important;
}


form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid #505050;
    font-size: 16px;
    color: #505050;
    padding: 5px 30px 5px 0;
    min-width: 200px;
    width: 100%;
    position: relative;

}

form input[type="email"]:disabled,
form input[type="text"]:disabled,
form select:disabled {
    color: #8c8c8c;
    border-bottom: 2px solid #959595; /* Light grey underline */
}

/* Wrapper for select to add arrow */
.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}


.select-container::after {
    font-family: "icomoon";
    content: "\e914";
    font-size: 18px;
    color: #6c6c6c;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Change arrow color when select is focused */
form select:focus + .select-container::after {
    color: #fa6900; /* Change arrow color on focus */
}

/* Style placeholder text */
form input::placeholder {
    color: #919191; /* Light grey placeholder */
}

/* Add underline effect on focus */
form input:focus,
form select:focus {
    border-bottom: 2px solid #fa6900; /* Orange underline on focus */
}

/* Style the button as a simple text link */


.card_content.logo {
    display: flex;
    align-items: center;
    min-width: 100px;

}


.file_upload {
    margin-top: 1rem;
    text-align: center;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file_upload:hover {
    border-color: #fa6900;
}

.file_upload_label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.file_upload_label input[type="file"] {
    display: none; /* Hide the native file input */
}

.add_member_form {
    display: flex;
}

@media screen and (max-width: 1000px) {
    .add_member_form {
        display: grid;
        grid-template-columns: 1fr;
    }

    /*form {*/
    /*    display: grid;*/
    /*    grid-template-columns: 1fr 1fr; !* Two equal columns *!*/
    /*    gap: 15px; !* Space between inputs *!*/
    /*    align-items: center;*/
    /*    justify-content: center;*/
    /*}*/
    input, select, button {
        width: 100%;
    }
}

.logo_zooza {
    width: 250px;
    margin-bottom: 50px;

}


.z2 .checkbox_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--main_padding) * 4);
    margin: 0 auto;
}


@media screen and (max-width: 500px) {

    td {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 20vw
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form input[type="email"],
    form input[type="text"] {
        width: 95%;
    }

    form select {
        width: 100%;
    }

    .select-container {
        width: 95%;
    }

    .select-container::after {
        right: 10px;
    }

}


.error-message {
    color: #a94442;
}


form a {
    background: none;
    border: none;
    color: #fa6900;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.submit {
    background: none;
    border: none;
    color: #fa6900; /* Orange text */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
    margin-top: 15px;
}

form button {
    background: none;
    border: none;
    color: #fa6900; /* Orange text */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.file_upload {
    margin-top: 1rem;
    text-align: center;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file_upload.dragging {
    border-color: #fa6900;
    background-color: rgba(250, 105, 0, 0.1);
}

.file_upload_label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.file_upload_label input[type="file"] {
    display: none;
}

.z2 .checkbox_grid label span {
    min-height: 86px;
    align-content: center;
}

.z2 .app_page_layout .actions {
    justify-content: center;
}

.z2 .app_page_layout .card_content .logo_zooza {
    display: flex;
    justify-content: center;
}

.z2 .app_page_layout .card_content {
    justify-content: center;
}

a[role="link"] {
    background: none;
    border: none;
    color: #fa6900;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
}

.icon-tick {
    color: white; /* Make icon white */
    font-weight: bold;
    background-color: #00ac00; /* Green background */
    border-radius: 50%; /* Circular shape */
    display: inline-flex; /* Ensure proper spacing */
    justify-content: center;
    align-items: center;
    width: 24px; /* Adjust size */
    height: 24px; /* Adjust size */
    font-size: 11px; /* Adjust icon size */
    margin-bottom: 1px;
}

.icon-clock {
    width: 24px; /* Adjust size */
    height: 24px; /* Adjust size */
    font-size: 21px;
}

.text_lead {
    color: #393939;
}

.divider {
    width: 100%;
    height: 3px; /* Thickness of the line */
    border: none;
    background-image: radial-gradient(circle, #b3b3b3 20%, transparent 20%);
    background-size: 8px 4px; /* (dot spacing width, dot size height) */
    background-repeat: repeat-x; /* Repeat dots horizontally */
}
.row{
    height: 20px;
}
.desktop_th{
    color: #494949;
    font-size: 1.1rem;
}

body.z2 {
    text-align: center;
}

.redirect {
    justify-content: right;
    align-items: start;
}

.start_actions {
    display: flex;
    justify-content: start;
}

.svg_coffee {
    max-width: 150px;

}


table {
    text-align: start;
}


th.actions > form {
    align-self: end;
}


td.remove_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

}

.z2 .no_chrome_card .span_4 {
    width: 100%
}

.card_content {


}

th.actions {
    text-align: right;
    display: table-cell;
    width: 130px;
}

th.actions form {
    display: inline-block;
}

.logo img {
    max-height: 350px;
}

@media screen and (max-width: 700px) {
    .logo_zooza {
        display: flex;
        justify-content: center;

    }

    .logo_zooza a {
        min-width: 180px;
    }

    th.actions {
        width: 100%;
    }

    .logo img {
        max-width: 70%;
    }


}

@media screen and (max-width: 700px) {
    .z2 .checkbox_grid {
        display: grid;
        gap: calc(var(--main_padding) * 4);
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    /* Fix card headings and text */
    .z2.no_chrome_card h1,
    .z2.no_chrome_card h2,
    .z2.no_chrome_card h3 {
        color: #ffffff !important;
    }

    .z2.no_chrome_card .text_lead,
    .z2.no_chrome_card .card_header p,
    .z2.no_chrome_card .card_content p,
    .z2.no_chrome_card .card_content h3 {
        color: #d0d0d0 !important;
    }

    /* Fix checklist items */
    .check_list li,
    .check_list ul li {
        color: #e0e0e0 !important;
    }

    /* Loader overlay */
    .loader {
        background-color: rgba(26, 26, 26, 0.9);
    }

    /* Table elements */
    table, th, td {
        color: #e0e0e0 !important;
    }

    td {
        border-color: #404040;
    }

    /* Buttons */
    button.z2.primary {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #e0e0e0;
    }

    button.z2.primary:hover {
        background-color: #3a3a3a;
    }

    /* Links */
    a[role="link"], form a, .submit, form button {
        color: #ff8533 !important;
    }

    /* Remove button */
    .remove_button {
        color: #e0e0e0;
    }

    .remove_button:hover {
        color: #ff8533;
    }

    /* Show more button */
    .show_more_button {
        color: #ff8533;
    }

    .show_more_button:disabled {
        color: #666;
    }

    /* Select dropdown arrow */
    .select-container::after {
        color: #b0b0b0;
    }

    form select:focus + .select-container::after {
        color: #ff8533;
    }

    /* Error message */
    .error-message {
        color: #ff6666;
    }

    /* Checkboxes and labels */
    .z2 .checkbox_grid label {
        color: #e0e0e0 !important;
        border-color: #505050 !important;
    }

    .z2 .checkbox_grid label:hover {
        background-color: #3a3a3a !important;
    }

    .z2 .checkbox_grid label span {
        color: #e0e0e0 !important;
    }

    /* Loaders in dark mode */
    .table_loader span {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: #ff8533;
    }

    .check_list_loader {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: #ff8533;
    }
}

/* AI Courses Styles */

/* Animations */
@keyframes ai-fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes ai-sk-bounce {
  0%, 100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

@keyframes ai-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Loading Container */
.ai-loading-container {
  position: relative;
}

.ai-spinner-container {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 2rem;
}

.ai-double-bounce1,
.ai-double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fa6900;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: ai-sk-bounce 2s infinite ease-in-out;
}

.ai-double-bounce2 {
  animation-delay: -1s;
}

.ai-loading-message-text {
  font-weight: 500;
  letter-spacing: 0.3px;
  animation: fadeInOut 2.5s ease-in-out
}

/* Results Container */
.ai-results-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Edit later info */
.ai-edit-later-info {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Brand Info Sections */
.ai-brand-info-logo,
.ai-brand-info-colors,
.ai-courses-section {
  margin-bottom: 2rem;
  text-align: center;
}

.ai-brand-info-logo h3,
.ai-brand-info-colors h3,
.ai-courses-section h3 {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Logo Display */
.ai-brand-info-logo img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

/* Not found messages */
.ai-not-found-message {
  color: #666;
  font-style: italic;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.ai-not-found-section {
  text-align: center;
}

.ai-not-found-section .ai-not-found-message {
  margin-bottom: 1rem;
}

/* Color Swatches */
.ai-color-swatches {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-color-swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-color-swatch form {
  margin: 0;
}

.ai-color-swatch input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
  min-width: 100px;
}

.ai-color-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.ai-color-swatch span {
  font-family: monospace;
  font-size: 0.9rem;
}

/* Mobile Color Swatches */
.ai-color-swatches-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.ai-color-swatch-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

.ai-color-input-mobile {
  width: 100%;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
}

.ai-remove-button-mobile {
  width: 100%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-add-button-mobile {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
}

/* Add buttons */
.ai-add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #fa6900;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.ai-add-button:hover {
  background-color: #e05e00;
}

.ai-add-button:active {
  transform: scale(0.98);
}

/* Small icon-only button for colors */
.ai-color-swatches .ai-add-button {
  width: 50px;
  height: 50px;
  padding: 0;
  justify-content: center;
}

.ai-color-swatches .ai-add-button .icon-plus {
  font-size: 1.2rem;
}

/* Course table */
.ai-courses-table {
  margin: 0 auto;
}

/* Course table inputs */
.ai-courses-table tbody td form {
  margin: 0;
}

.ai-courses-table form input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.25rem 0;
}

.ai-courses-table form select {
  padding: 0.5rem;
}

.ai-courses-table .ai-select-container {
  margin: 0.25rem 0;
}

.ai-courses-table tbody td select {
  min-width: 355px;
  padding: 0.5rem;
  text-align: center;
}

.ai-courses-table td.ai-remove-cell {
  padding: 12px 0 0 5px;
}

/* Mobile Courses */
.ai-courses-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-course-card-mobile {
  margin-bottom: 1.5rem;
}

.ai-course-card-mobile form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-course-card-mobile .ai-course-name {
  width: 100%;
  padding: 0.5rem;
}

.ai-course-card-mobile .ai-course-type-mobile {
  width: 100%;
  padding: 0.5rem;
}

.ai-course-card-mobile .ai-remove-course-button-mobile {
  margin-top: 0.5rem;
}

/* Save Progress Overlay */
.ai-save-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.ai-save-progress-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ai-save-progress-modal h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  text-align: center;
  color: #333;
}

.ai-save-progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-save-progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.ai-save-progress-item:last-child {
  border-bottom: none;
}

.ai-save-progress-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-save-progress-label {
  font-size: 0.95rem;
  color: #333;
}

/* Progress states */
.ai-save-progress-item.pending .ai-save-progress-label {
  color: #999;
}

.ai-save-progress-item.saving .ai-save-progress-label {
  color: #fa6900;
  font-weight: 500;
}

.ai-save-progress-item.done .ai-save-progress-label {
  color: #22c55e;
}

.ai-save-progress-item.error .ai-save-progress-label {
  color: #ef4444;
}

.ai-save-progress-item.skipped .ai-save-progress-label {
  color: #999;
  font-style: italic;
}

/* Spinner animation */
.ai-save-progress-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fa6900;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}

/* Progress icons */
.ai-save-progress-done {
  color: #22c55e;
  font-size: 1.1rem;
}

.ai-save-progress-error {
  color: #ef4444;
  font-size: 1.1rem;
}

.ai-save-progress-skipped {
  color: #999;
  font-size: 1.1rem;
}

.ai-save-progress-pending {
  width: 8px;
  height: 8px;
  background-color: #ddd;
  border-radius: 50%;
}

/* Error message */
.ai-error-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
}

/* Initial form */
.ai-initial-form {
  text-align: center;
  padding: 2rem 0;
}

.ai-generate-button {
    margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.ai-url-override-container {
  margin-top: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ai-url-override-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.ai-url-override-input {
  width: 90%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Welcome section (first loading step only) */
.ai-welcome-section {
  margin-bottom: 2rem;
  animation: ai-fadeInOut 2.5s ease-in-out;
}

.ai-welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.ai-welcome-subtitle {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Loading state */
.ai-loading-state {
  text-align: center;
  padding: 3rem 0;
}

.ai-loading-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ai-loading-messages {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-loading-message-text {
  color: #666;
  font-size: 1rem;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .ai-color-swatches {
    gap: 1rem;
    flex-direction: column;
  }

  .ai-course-card-mobile {
    margin-bottom: 1.5rem;
  }

  .ai-color-swatch {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .ai-color-swatch form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .ai-color-swatch input[type="text"] {
    width: 100% !important;
    max-width: 300px;
  }

  .ai-color-swatch .remove_button {
    width: 100% !important;
    max-width: 300px;
    display: block !important;
    margin: 0 !important;
    text-align: center;
  }

  .ai-color-box {
    margin-bottom: 0.25rem;
  }

  /* Add button takes full width on mobile */
  .ai-color-swatches .ai-add-button {
    width: 100%;
    height: auto;
    padding: 0.75rem;
    margin-top: 0.5rem;
    max-width: 300px;
  }

  .ai-select-container {
    width: 105%;
  }

  .ai-add-button {
    justify-content: center;
  }

    .ai-url-override-input {
        font-size: 16px;
        height: 2rem;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .ai-not-found-message {
    color: #aaa;
    background-color: #2a2a2a;
  }

  /* URL input field */
  .ai-url-override-input {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
  }

  .ai-url-override-input::placeholder {
    color: #909090 !important;
  }

  /* Labels */
  .ai-url-override-label {
    color: #c0c0c0 !important;
  }

  /* Error message dark mode */
  .ai-error-message {
    background-color: #4a2020 !important;
    border-color: #8a3030 !important;
    color: #ff6666 !important;
  }

  /* Spinner dark mode */
  .ai-double-bounce1,
  .ai-double-bounce2 {
    background-color: #ff8533 !important;
  }

  /* Loading message dark mode */
  .ai-loading-message-text {
    color: #c0c0c0 !important;
  }

  .ai-loading-title {
    color: #e0e0e0 !important;
  }

  .ai-welcome-title {
    color: #e0e0e0 !important;
  }

  .ai-welcome-subtitle {
    color: #c0c0c0 !important;
  }

  .ai-edit-later-info {
    color: #999 !important;
  }

  /* Color swatch text */
  .ai-color-swatch span {
    color: #c0c0c0 !important;
  }

  /* Color input and course table inputs dark mode */
  .ai-color-swatch input,
  .ai-color-input-mobile,
  .ai-courses-table tbody td input {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
  }

  .ai-courses-table tbody td select {
    background-color: #2a2a2a !important;
    width: 100%;
    color: #e0e0e0 !important;
  }

  .ai-add-button {
    background-color: #ff8533;
  }

  .ai-add-button:hover {
    background-color: #ff9a4d;
  }

  /* Save progress dark mode */
  .ai-save-progress-modal {
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .ai-save-progress-modal h3 {
    color: #e0e0e0;
  }

  .ai-save-progress-item {
    border-bottom-color: #333;
  }

  .ai-save-progress-label {
    color: #e0e0e0;
  }

  .ai-save-progress-item.pending .ai-save-progress-label {
    color: #666;
  }

  .ai-save-progress-item.saving .ai-save-progress-label {
    color: #ff8533;
  }

  .ai-save-progress-item.skipped .ai-save-progress-label {
    color: #666;
  }

  .ai-save-progress-spinner {
    border-color: #333;
    border-top-color: #ff8533;
  }

  .ai-save-progress-pending {
    background-color: #444;
  }
}
