.page-preview {
    max-width: 100%;
    width: 100% !important;
    padding: 20px 10px;
    box-sizing: border-box;
}

.chat-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.chat-message.bot {
    background-color: #f1f0f0;
    color: #333;
    align-self: flex-start;
    border-radius: 15px;
    border-top-left-radius: 0;
    padding: 15px 12px;
    margin: 5px 0;
    max-width: 80%;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-word;
}

.chat-message.user {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-end;
    border-radius: 15px;
    border-top-right-radius: 0;
    padding: 15px 12px;
    margin: 5px 0;
    margin-left: auto;
    width: fit-content;
    max-width: 80%;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-word;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
    background: #fff;
}

#chat-input {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-right: 10px;
}

.chat-send-btn {
    padding: 10px 15px;
    font-size: 18px;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.chat-send-btn:hover {
    background-color: #16A34A;
    transition: all 0.3s ease-in-out;
}

.chat-subtitle {
    font-size: 14px !important;
}

.file-type-option.active {
    font-weight: bold;
    background-color: #f0f0f0;
}

@media (max-width: 600px) {
    .sections {
        padding-left: 0;
    }

    .chat-message.bot,
    .chat-message.user {
        max-width: 100%;
        font-size: 14px;
        padding: 12px 10px;
    }

    #chat-input {
        font-size: 14px;
    }

    .chat-send-btn {
        font-size: 16px;
        padding: 10px 12px;
    }

    #chat-messages {
        padding: 15px;
    }
}

.dropdown {
    position: relative;
}
.sidebar-footer {
    margin-top: auto;        /* pushes it to the bottom */
    text-align: center;
    padding: 8px 0;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.sidebar-footer .version-text {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* Layout */
.container {
    padding: 15px;
    max-width: 100%;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.x-navigation-header-unassigned {
    display: flex;
    justify-content: space-between;  /* search left, filters+actions right */
    align-items: center;
    flex-wrap: wrap;                 /* stack on small screens */
    gap: 15px;
    padding: 10px;
}

.filter-navigation {
    justify-content: space-between;  /* search left, filters+actions right */
    align-items: center;
    flex-wrap: wrap;                 /* stack on small screens */
    gap: 15px;
    padding: 10px;
}

/* Container with logo + input */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;  /* space between logo and input */
    flex: 1 1 250px;
    max-width: 400px;
}

/* Left logo */
.search-box .left-logo {
    width: 30px;
    height: 30px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 6px 36px 6px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

.input-wrapper .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    pointer-events: none;
}

/* Right side (filters + buttons) */
.filters-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Filters Container */
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Select Dropdown */
.filters select {
  appearance: none;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;

  /* auto follow text width */
  width: fit-content;
  min-width: max-content;
}


/* Hover + Focus */
.filters select:hover {
  border-color: #aaa;
  background-color: #fafafa;
}

.filters select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40,167,69,0.15);
}

/* Buttons */
.actions {
    display: flex;
    gap: 8px;
}
.actions button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: #10B981;
    color: #fff;
    cursor: pointer;
}
.actions button:hover {
    background: #10B981;
}

/* Table wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px auto;
}

/* Table */
.task-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* Table headers */
.task-table th {
    padding: 10px;
    border-bottom: 2px solid #ddd;  /* only bottom border */
    background: none;               /* remove background color */
    font-weight: 1000;
    color: black;  
}

/* Table cells */
.task-table td {
    vertical-align: top;   /* align to top */
    text-align: left;      /* align text to left */
    padding: 10px;
    border: none;                   /* no border at all */
    background: none;               /* no background */
    font-weight: normal;            /* normal text */
    color: black;                 /* keep text clean */
}

/* Details button */ 
.details-btn { 
    background: #10B981; 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    padding: 5px 12px; 
    cursor: pointer; }

/* Add button */ 
.add-btn { 
    background: #10B981; 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    padding: 5px 12px; 
    cursor: pointer;
    font-weight: bold;
}

.add-btn:hover,
.add-btn:focus,
.add-btn:active,
.add-btn.active,
.open>.dropdown-toggle.add-btn {
    color: rgb(42, 41, 41);
}

.add-btn[disabled],
.add-btn.disabled {
    color: #fff;
}

/* Delete button */ 
.delete-btn { 
    background: #9CA3AF !important;
    color: #fff !important;
    border: none; 
    border-radius: 6px; 
    padding: 5px 12px; 
    cursor: pointer;
    font-weight: bold;
}

.delete-btn:hover,
.delete-btn:focus,
.delete-btn:active,
.delete-btn.active,
.open>.dropdown-toggle.delete-btn {
    color: rgb(42, 41, 41);
}

.delete-btn[disabled],
.delete-btn.disabled {
    color: #fff;
}

/* Grey button */
.grey-btn { 
    background: #9CA3AF !important;
    color: #000 !important;
    border: none; 
    padding: 10px 16px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.grey-btn:hover,
.grey-btn:focus,
.grey-btn:active,
.grey-btn.active,
.open>.dropdown-toggle.delete-btn {
    color: rgb(42, 41, 41);
}

.grey-btn[disabled],
.grey-btn.disabled {
    color: #fff;
}

.swal2-loader {
  border-color: #10B981 transparent #10B981 transparent !important;
}

.swal2-icon.swal2-warning {
  border-color: #F55F5F !important; /* red border */
  color: #F55F5F !important;        /* red exclamation mark */
}

.swal2-confirm {
  background-color: #10B981;
  border-color: #10B981;
  color: #fff;
}

/* Optional: hover effect */
.swal2-confirm:hover {
  background-color: #0ea672;
}

.swal2-shown .swal2-height-auto{
    overflow-y: hidden;
}