




.search-input {
    max-width: 300px;
}

.table-fixed-height {
    max-height: 400px;
    overflow-y: auto;
}

/* Fixed header */
.table-header-fixed th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.image-preview-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-preview-wrapper img {
        cursor: pointer;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

.image-remove-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 2;
    padding: 0.15rem 0.4rem;
    font-size: 1rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: none;
    transition: 0.2s;
}

    .image-remove-btn:hover {
        background: rgba(255, 0, 0, 0.8);
    }

.image-preview-wrapper:hover .image-remove-btn {
    display: block;
}
.wrapper-column {
    display: block; /* fill the cell width */
    max-width: 150px; /* truncate after ~20 chars */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tox-statusbar {
    display: none !important;
}
/* Hide TinyMCE "Upgrade" promo button */
.tox .tox-promotion,
.tox .tox-promotion-link {
    display: none !important;
}

.weight-col {
    width: 80px;
    max-width: 80px;
    white-space: nowrap;
}

/* Background and Layout */
    .bg-light-soft { background-color: #f8f9fc; min-height: 100vh; }
    
    /* Card Design */
    .custom-form-card {
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }

    /* Section Icons */
    .section-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    .bg-primary-soft { background-color: #e8f0fe; }
    .bg-success-soft { background-color: #e6f6ec; }
    .bg-warning-soft { background-color: #fff4e5; }

    /* Form Elements */
    .form-label { color: #5a6a85; letter-spacing: 0.5px; }
    
    .custom-input, .custom-select {
        border: 1px solid #dfe5ef;
        border-radius: 8px;
        padding: 0.6rem 1rem;
        transition: all 0.2s ease-in-out;
        background-color: white;
    }

    .custom-input:focus, .custom-select:focus {
        border-color: #5d87ff;
        box-shadow: 0 0 0 3px rgba(93, 135, 255, 0.1);
    }

    .custom-input-sm {
        border: 1px solid #dfe5ef;
        border-radius: 6px;
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    /* Checkbox Styling */
    .checkbox-lg {
        width: 1.4rem;
        height: 1.4rem;
        cursor: pointer;
    }

    /* Buttons */
    .btn-rounded { border-radius: 8px; }
    .btn-primary { background-color: #5d87ff; border-color: #5d87ff; border-radius: 8px; }
    .btn-primary:hover { background-color: #4f73d9; border-color: #4f73d9; }
    .btn-outline-primary { color: #5d87ff; border-color: #5d87ff; border-radius: 8px; }

    /* TinyMCE / Editor Container */
    .editor-container {
        border: 1px solid #dfe5ef;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Helper Classes */
    .x-small { font-size: 0.75rem; }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .form-actions { flex-direction: column; }
        .form-actions button, .form-actions a { width: 100%; }
        .card-body { padding: 1.5rem !important; }
    }

/* dharmendra css end  */
/* --------------------------- */
/* ========================================

========================================= */
.cus_page-container {
    min-height: 100vh;
    background-color: #f9fafb; /* gray-50 */
    padding: 6px;
}

@media (min-width: 768px) {
    .cus_page-container {
        padding: 8px;
    }
}

/* ========================================
   Header
========================================= */
.cus_page-header {
    margin-bottom: 0.5rem;
}

.cus_header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cus_header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cus_header-title {}

.cus_page-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;  /* font-bold */
    color: #111827;    /* gray-900 */
    letter-spacing: -0.02em;
}

.cus_page-subtitle {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280;      /* gray-500 */
}

/* ========================================
   Card
========================================= */
.cus_card {
    background: #fff;
    border-radius: 12px; /* rounded-xl */
    border: 1px solid #e5e7eb; /* gray-200 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden;
}

.cus_card-header {
    padding: 9px 8px; /* py-[9px] px-[8px] */
}

.cus_card-header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sideBarSubMenu {
  display: flex;
  align-items: center;
  gap: 0.75rem;              /* gap-3 */
  padding-left: 0.5rem;      /* px-2 */
  padding-right: 0.5rem;     /* px-2 */
  padding-top: 0.25rem;      /* py-1 */
  padding-bottom: 0.25rem;   /* py-1 */
  font-size: 0.875rem;       /* text-sm */
  color: #4b5563;            /* text-gray-600 */
  border-radius: 0.5rem;     /* rounded-lg */
  margin-left: 0.5rem;       /* ml-2 */
  transition: all 0.2s ease; /* transition-all duration-200 */
  background-color:#ddddff8a;
}
.ulOfSubMenu {
  display: none;          /* hidden */
  margin-top: 0.25rem;    /* mt-1 */
  margin-left: 1rem;      /* ml-4 */
  padding-bottom: 8px;    /* pb-[8px] */
  padding-right: 5px;     /* pr-[5px] */
}

/* space-y-1 equivalent */
.ulOfSubMenu > * + * {
  margin-top: 0.25rem;    /* space-y-1 (adds spacing between children) */
}

.cus_menu {
  display: flex;                 /* flex */
  align-items: center;           /* items-center */
  justify-content: space-between;/* justify-between */
  width: 100%;                   /* w-full */
  padding-left: 1rem;            /* px-4 */
  padding-right: 1rem;           /* px-4 */
  padding-top: 0.625rem;         /* py-2.5 */
  padding-bottom: 0.625rem;      /* py-2.5 */
  font-size: 0.875rem;           /* text-sm */
  font-weight: 500;              /* font-medium */
  color: #374151;                /* text-gray-700 */
  border-radius: 0.5rem;         /* rounded-lg */
  transition: all 0.2s ease;     /* transition-all duration-200 */
}

.subMenuLink {
  display: flex;                 /* flex */
  align-items: center;           /* items-center */
  gap: 0.75rem;                  /* gap-3 */
  padding-left: 1rem;            /* px-4 */
  padding-right: 1rem;           /* px-4 */
  padding-top: 0.625rem;         /* py-2.5 */
  padding-bottom: 0.625rem;      /* py-2.5 */
  font-size: 0.875rem;           /* text-sm */
  font-weight: 500;              /* font-medium */
  color: #374151;                /* text-gray-700 */
  border-radius: 0.5rem;         /* rounded-lg */
  transition: all 0.2s ease;     /* transition-all duration-200 */
}

.subMenuLink:hover {
  background-color: #eef2ff;     /* hover:bg-indigo-50 */
  color: #4f46e5;                /* hover:text-indigo-600 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* hover:shadow-sm */
}

.cus_menu:hover {
  background-color: #eef2ff;     /* hover:bg-indigo-50 */
  color: #4f46e5;                /* hover:text-indigo-600 */
}

/* group-hover equivalent */
.group:hover .custom-class {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.sideBarSubMenu:hover {
  background-color: #eef2ff; /* hover:bg-indigo-50 */
  color: #4f46e5;            /* hover:text-indigo-600 */
  padding-left: 1.25rem;     /* hover:pl-5 */
}

@media (min-width: 1024px) {
    .cus_card-header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cus_card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}

/* ========================================
   Buttons
========================================= */
.cus_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;    /* font-medium */
    border-radius: 8px;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.cus_btn-primary {
    background-color: var(--primary-bg);
    color: #fff;
}

.cus_btn-primary:hover {
    background-color: #1d4ed8; /* blue-700 */
}

.cus_btn-clear {
    background-color: #f3f4f6; /* gray-100 */
    color: #6b7280; /* gray-500 */
    border-radius: 999px; /* rounded-full */
}

.cus_btn-clear:hover {
    background-color: #e5e7eb;
    color: #dc2626; /* red-500 */
}

/* ========================================
   Form Inputs / Search
========================================= */
.cus_search-form {
    width: 100%;
}
.cus_login-page { background: #f4f7f6; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.cus_login-container { display: flex; width: 1000px; max-width: 95%; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.cus_login-visual { flex: 1; background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); padding: 3rem; align-items: center; justify-content: center; text-align: center; }
.cus_login-form-section { flex: 1; padding: 3rem; }
.cus_divider-text { position: relative; text-align: center; font-size: 0.75rem; font-weight: bold; color: #999; 
margin-top: 1.5rem !important;
}
.cus_btn2{
        display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 19px;
}
.cus_divider-text::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #eee; z-index: 1; }
.cus_divider-text span { position: relative; background: #fff; padding: 0 10px; z-index: 2; }
.cus_page-item .cus_page-link {
   padding: 5px 7px;
    background: #dddddd;
    border-radius: 4px;
    color: #0623ff;;
}
.loginBtn2{
        display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
   border: 0;
    outline: none;
    transition: all 0.2s ease;
    background: #0d6efd;
    color: white;
    width: 100%;
}
.loginBtn2:hover{
    background: #2778f0;
    color: rgb(241, 235, 235);
}
.cus_page-item.cus_active .cus_page-link {
    background-color: var(--primary-bg);
    color: white;
    border-color: var(--primary-bg);
}
@media (min-width: 1024px) {
    .cus_search-form {
        width: auto;
    }
}
.twoCardParent{
        align-items: center;
    display: flex;
    justify-content: space-around;
}

.cus_search-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 640px) {
    .cus_search-row {
        flex-direction: row;
    }
}

.cus_search-group {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .cus_search-group {
        width: 18rem; /* sm:w-72 */
    }
}

.cus_input {
    width: 100%;
    padding: 0.5rem 3rem 0.5rem 1.25rem; /* py-2 pl-5 pr-12 */
    font-size: 0.875rem; /* text-sm */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 999px; /* rounded-full */
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* shadow-sm */
    outline: none;
}

.cus_input:focus {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px #3b82f6; /* ring-2 */
}

.cus_search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.cus_search-icon {
    font-size: 1.125rem; /* text-lg */
    color: #2563eb; /* blue-600 */
    transition: transform 0.2s ease;
}

.cus_search-btn:hover .cus_search-icon {
    transform: scale(1.1);
}

/* ========================================
   Table
========================================= */
.cus_table-wrapper {
    overflow-x: auto;
}

.cus_table {
    width: 100%;
    border-collapse: collapse;
}

.cus_table-head {
    background-color: #f9fafb; /* gray-50 */
    border-bottom: 1px solid #e5e7eb;
}

.cus_table th {
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.cus_table td {
    padding: 6px 8px;
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}

.cus_table-body .cus_table-row:hover {
    background-color: #f9fafb; /* gray-50 */
    transition: background 0.15s ease;
}

.cus_font-medium {
    font-weight: 500;
}

/* Responsive column visibility */
.cus_show-md,
.cus_show-lg,
.cus_show-xl {
    display: none;
}

@media (min-width: 768px) { /* md */
    .cus_show-md { display: table-cell; }
}

@media (min-width: 1024px) { /* lg */
    .cus_show-lg { display: table-cell; }
}

@media (min-width: 1280px) { /* xl */
    .cus_show-xl { display: table-cell; }
}

/* ========================================
   Badges
========================================= */
.cus_badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem; /* px-2.5 py-0.5 */
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-800 */
}

/* ========================================
   Actions
========================================= */
.cus_action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cus_icon-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cus_edit-btn {
    color: var(--editIconColor);
}

.cus_edit-btn:hover {
    background-color: var(--editIconHoverBg);
}

.cus_delete-btn {
    color: var(--deleteIconColor);
}

.cus_delete-btn:hover {
    background-color: var(--deleteIconHoverBg);
}

.cus_roles-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    color: var(--rolesIconColor);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cus_roles-btn:hover {
    background-color: var(--rolesIconHoverBg);
}

.cus_roles-text {
    display: none;
}

@media (min-width: 640px) {
    .cus_roles-text {
        display: inline;
    }
}

.cus_inline-form {
    display: inline-block;
}

/* ========================================
   Empty State
========================================= */
.cus_empty-cell {
    padding: 2rem;
    text-align: center;
    color: #6b7280; /* gray-500 */
    font-size: 0.875rem;
}

.cus_empty-state {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.cus_empty-icon {
    font-size: 2.5rem;
    color: #d1d5db; /* gray-300 */
}

/* ========================================
   Pagination
========================================= */
.cus_pagination-footer {
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb; /* gray-200 */
    padding: 6px;
}
.cus_pagination-list {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cus_pagination-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cus_pagination-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cus_pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.cus_page-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid #d1d5db; /* gray-300 */
    background-color: #fff;
    color: #374151; /* gray-700 */
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cus_page-btn:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.cus_disabled {
    background-color: #f3f4f6;
    color: #d1d5db; /* gray-400 */
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.cus_active {
    background-color: var(--primary-bg);
    color: #fff;
    border-color: var(--primary-bg);
    border-radius: 8px;
}

.cus_show-sm {
    display: none;
}

@media (min-width: 640px) {
    .cus_show-sm {
        display: inline;
    }
}

/* EDIT  */
/* Base Page Container */
.cus_page-container {
    min-height: 100vh;
    background-color: #f9fafb;
    padding: 0.5rem;
}

/* Header */
.cus_page-header {
    margin-bottom: 0.5rem;
}

.cus_header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cus_header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cus_page-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
}

@media (min-width: 768px) {
    .cus_page-title {
        font-size: 1.25rem;
    }
}

/* Divider */
.cus_divider {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Card */
.cus_card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Card Header */
.cus_card-header {
    padding: 0.5rem 1.5rem;
}

.cus_card-header-primary {
    background-color: var(--primary-bg);
}

.cus_card-title-white {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

/* Card Body */
.cus_card-body {
    padding: 1.5rem;
}

/* Form Grid */
.cus_form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.cus_form-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .cus_form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cus_form-grid2{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Groups */
.cus_form-group {
    position: relative;
}

.cus_label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

/* Input wrapper & icon */
.cus_input-wrapper {
    position: relative;
}

.cus_input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
}

/* Inputs */
.cus_input {
    width: 100%;
    padding: 0.625rem .5rem 0.625rem .5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cus_input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: transparent;
}

.cus_input-disabled {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.cus_input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Select Input */
.cus_input-select {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.cus_input-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: transparent;
}

/* Select Arrow */
.cus_select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Action Footer */
.cus_action-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
}

.cus_action-flex {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cus_action-flex {
        flex-direction: row;
    }
}

/* Buttons */
.cus_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cus_btn-back {
    background-color: #4b5563;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cus_btn-back:hover {
    background-color: #374151;
}

.cus_btn-save {
    background-color: var(--primary-bg);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cus_btn-save:hover {
    background-color: var(--SaveAndCreateHoverBg);
}





/* New custom styles derived from Tailwind usage */

.custom-validation-summary,
.cus_validation-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fef2f2; /* red-50 */
    border-left: 4px solid #ef4444; /* red-500 */
    color: #b91c1c; /* red-700 */
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Ensure validation messages look correct */
.cus_input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Refined select icon handling */
.cus_input-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

/* Adjustments for the icons inside wrappers */
.cus_input-wrapper .cus_input-icon {
    pointer-events: none;
}

/* Grid spacing adjustment if needed */
@media (min-width: 768px) {
    .cus_form-grid {
        gap: 1rem; /* Adjusting gap for better visual spacing on desktop */
    }
}

/* Update your existing stylesheet with these specific tweaks */

/* Handle inputs without icons while maintaining your custom-input style */
.cus_input-no-icon {
    width: 100%;
    padding: 0.625rem 1rem; /* Removed the left padding used for icons */
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: white;
}

.cus_input-no-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: transparent;
}

/* Validation Summary (Matching your alert-danger intent) */
.custom-validation-summary,
.cus_validation-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Error text styling */
.cus_input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}


.cus_search-group {
  position: relative;
  display: flex;             /* Make flex container */
  align-items: center;       /* Vertically center */
  width: 100%;
  max-width: 300px;          /* Optional max width */
}

.cus_search-group input.cus_input {
  flex-grow: 1;              /* Take all available space */
  padding-right: 4rem;       /* Enough space for buttons */
}

.cus_search-btns {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cus_search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #2563eb;  /* blue-600 */
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.cus_btn-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #eb2525;  /* blue-600 */
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cus_search-btn:hover,
.cus_btn-clear:hover {
  color: #1e40af;  /* blue-800 */
}

/* Ensure the clear button doesn't take extra width or cause layout breaks */
.cus_btn-clear {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}
.cus_alignSrchBtn{
    position: absolute;
    right: 19px;
}
.responsive-search{
    display: flex;
    justify-content: flex-end;
    width: 100% !important;
}

@media (max-width: 1000px) {
    .responsive-search {
        justify-content: center;
        width: 100% !important;
    }
    .twoCardParent{
    flex-direction: column;
    }
    .InputAlign3{
    grid-template-columns: 1fr !important;
    gap: 5px;
}
    .InputAlign4{
    grid-template-columns: 1fr !important;
    gap: 5px;
}
    .InputAlignQuestionsIndex {
    grid-template-columns: 1fr !important;
    gap: 5px;
}
    .InputAlign3CenterPadding{
    grid-template-columns: 1fr !important;
    gap: 5px;
}
}
.responsive-search-double{
    display: flex;
    justify-content: flex-end;
    width: 100% !important;
    gap: 12px;
}

@media (max-width: 1000px) {
    .responsive-search-double {
        justify-content: center;
        width: 100% !important;
        flex-direction: column;
    }
}

/* WRAPPER */
.cus_wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* CONTAINER */
.cus_container {
    /* max-width: 1200px; */
    margin: auto;
    padding: 0 16px;
}

/* HEADER */
.cus_header_box {
    background: #fff;
    padding: 12px 16px;
    margin-top: 10px;
}

.cus_header_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cus_title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

.cus_subtitle {
    font-size: 13px;
    color: #64748b;
}

/* BUTTON */
.cus_add_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary-bg);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cus_add_btn:hover {
    background: var(--SaveAndCreateHoverBg);
}

/* SEARCH */
.cus_search_wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

@media (max-width: 1000px) {
    .cus_search_wrapper {
        justify-content: center;
    }
}

.cus_search_form {
    width: 100%;
    max-width: 320px;
}

.cus_search_group {
    position: relative;
}

.cus_input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid #e5e7eb;
      border-radius: 8px;
    font-size: 14px;
}

.cus_search_actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.cus_search_btn {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
}

.cus_clear_btn {
    color: red;
}

/* CARD */
.cus_card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* TABLE */
.cus_table_wrapper {
    overflow-x: auto;
}

.cus_table {
    width: 100%;
    border-collapse: collapse;
}

.cus_table th {
    background: #f8fafc;
    padding: 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--TableHeadingColor);
}

.cus_table td {
    padding: 8px;
    font-size: 14px;
    color: var(--tableRowDataColor);
}

.cus_table tr:hover {
    background: #eff6ff;
}

/* ACTIONS */
.cus_actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cus_responsive-search_grow {
    flex: 1;
}

.cus_btn_view_report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.cus_btn_view_report:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.cus_exam_report_header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.cus_exam_report_subtitle .cus_exam_report_meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.cus_exam_report_marks_line {
    margin-top: 6px;
    font-size: 14px;
}

.cus_exam_report_back_btn {
    flex-shrink: 0;
}

.cus_exam_report_table_wrap {
    overflow-x: auto;
}

.cus_exam_report_pass {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.cus_exam_report_fail {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.cus_icon_btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cus_edit {
    color: var(--editIconColor);
}

.cus_edit:hover {
    background: var(--editIconHoverBg);
}

.cus_delete {
    color: var(--deleteIconColor);
}

.cus_delete:hover {
    background: var(--deleteIconHoverBg);
}

/* PAGINATION */
.cus_pagination {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
}

.cus_page_btn {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #374151;
}

.cus_page_btn.active {
    background: #2563eb;
    color: #fff;
}

.cus_page_btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.cus_full-width {
    grid-column: span 2;
}

.cus_input-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    font-size: 14px;
    background-color: white;
}




/* Add these to your custom.css file */

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom badge for weight display */
.cus_weight_badge {
    background-color: var(--primary-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

/* For disabled selects */
.cus_input-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Back button gray variant */
.cus_btn-back-gray {
    background-color: #4b5563;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cus_btn-back-gray:hover {
    background-color: #374151;
}

/* Full width grid column */
.cus_grid-full {
    grid-column: span 4;
}

/* Table footer styling */
.cus_table-footer {
    background-color: #f9fafb;
}

.cus_table-footer td {
    padding: 1rem;
}

/* Weight input field */
.cus_weight-input {
    width: 100px;
    margin: 0 auto;
}
/* Add these to your custom.css file */

/* Empty state icon variation */
.cus_empty-icon.fa-table {
    font-size: 2.5rem;
    color: #d1d5db;
}

/* Badge variations */
.cus_badge-light {
    background-color: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-block;
}

/* Loading text style */
.cus_loading-text {
    color: var(--primary-bg);
    font-size: 0.625rem;
    margin-top: 0.125rem;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Weight input specific */
.cus_weight-input {
    width: 100px;
    margin: 0 auto;
    text-align: center;
}

/* Back button gray variant */
.cus_btn-gray {
    background-color: #4b5563;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.cus_btn-gray:hover {
    background-color: #374151;
}

/* Full width for description */
.cus_full-width {
    grid-column: span 4;
}

/* Table footer styling */
.cus_table-footer {
    background-color: #f9fafb;
}

.cus_table-footer td {
    padding: 1rem;
}

/* Disabled select styling */
.cus_input-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Additional classes derived from the CSHTML conversion */

/* Text colors */
.cus_text-muted {
    color: #94a3b8; /* slate-400 */
}

.cus_justify-center {
    justify-content: center;
}

.cus_text-center {
    text-align: center;
}

/* Button variants */
.cus_btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cus_btn-outline:hover {
    background-color: #f8fafc;
}

/* Icon spacing */
.cus_icon-left {
    margin-right: 0.5rem;
}

.cus_icon-small {
    font-size: 0.75rem;
}

/* Margin utilities */
.cus_mb-6 {
    margin-bottom: 1.5rem;
}

/* Form grid for filters */
.cus_form-grid-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}
.cus_searchMany-group{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
@media (min-width: 768px) {
    .cus_form-grid-filters {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Search group with actions */
.cus_search-actions {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Weight badge */
.cus_weight-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #e2e8f0;
    color: #334155;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table header cell */
.cus_table-th {
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--TableHeadingColor);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Table data cell */
.cus_table-td {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--tableRowDataColor);
}

/* Width utilities */
.cus_w-16 {
    width: 4rem;
}

/* Pagination info */
.cus_pagination-info {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Additional classes for the create/edit form */

/* Page title medium */
.cus_page-title-md {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
}

@media (min-width: 768px) {
    .cus_page-title-md {
        font-size: 1.5rem;
    }
}

/* Padding utilities */
.cus_py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.cus_px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.cus_py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.cus_ps-4 {
    padding-left: 1rem;
}

.cus_pt-5 {
    padding-top: 2rem;
}

.cus_py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.cus_px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Margin utilities */
.cus_mb-5 {
    margin-bottom: 2rem;
}

.cus_mb-4 {
    margin-bottom: 1rem;
}

.cus_mt-2 {
    margin-top: 0.5rem;
}

.cus_me-2 {
    margin-right: 0.5rem;
}

.cus_me-3 {
    margin-right: 0.75rem;
}

.cus_m-0 {
    margin: 0;
}

/* Border utilities */
.cus_border-top {
    border-top: 1px solid #e5e7eb;
}

.cus_border {
    border: 1px solid #e5e7eb;
}

.cus_rounded-3 {
    border-radius: 0.5rem;
}

/* Font utilities */
.cus_font-bold {
    font-weight: 700;
}

/* Flex utilities */
.cus_flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Text utilities */
.cus_text-center {
    text-align: center;
}

/* Table hover effect */
.cus_table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* Small input variant */
.cus_input-sm {
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cus_input-sm:focus {
    outline: none;
    border-color: #5d87ff;
    box-shadow: 0 0 0 3px rgba(93, 135, 255, 0.1);
}

/* Outline primary button */
.cus_btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #5d87ff;
    background-color: transparent;
    color: #5d87ff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cus_btn-outline-primary:hover {
    background-color: #5d87ff;
    color: #fff;
}

.cus_btn-outline-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cancel button style */
.cus_btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color:white ! important;
    background-color: var(--destructiveColor);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}


/* Card header primary with padding */
.cus_card-header-primary {
    background-color: var(--primary-bg);
    border-bottom: 1px solid #2563eb;
    border-radius: 8px 8px 0 0;
}

/* White card title */
.cus_card-title-white {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

/* Loading text style override */
.cus_loading-text {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Text muted class */
.cus_text-muted {
    color: #6b7280;
}

/* Back button gray variant (already exists but ensuring it's here) */
.cus_btn-back-gray {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #4b5563;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cus_btn-back-gray:hover {
    background-color: #374151;
}
/* Additional classes for the Edit page */

/* Text dark color */
.cus_text-dark {
    color: #1f2937;
}

/* Small text utility */
.cus_small {
    font-size: 0.875rem;
}

/* Margin top utility */
.cus_mt-1 {
    margin-top: 0.25rem;
}

/* Alert styles */
.cus_alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.cus_alert-danger {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

/* Outline secondary button */
.cus_btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: transparent;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cus_btn-outline-secondary:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    border-color: #9ca3af;
}

/* Padding variations */
.cus_p-4 {
    padding: 1rem;
}

.cus_p-md-5 {
    padding: 2rem;
}

@media (min-width: 768px) {
    .cus_p-md-5 {
        padding: 2.5rem;
    }
}

/* Card body (already exists but ensuring it's here) */
.cus_card-body {
    padding: 1.5rem;
}

/* Border none utility */
.border-0 {
    border: none;
}

/* Text muted (already exists but ensuring consistency) */
.cus_text-muted {
    color: #6b7280;
}

/* Font bold (already exists) */
.cus_font-bold {
    font-weight: 700;
}

/* Flex center (already exists) */
.cus_flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Additional spacing utilities */
.cus_py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.cus_px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.cus_mb-7 {
    margin-bottom: 1.75rem;
}

/* Text right alignment */
.cus_text-right {
    text-align: right;
}

/* Font semibold */
.cus_font-semibold {
    font-weight: 600;
}

/* Pagination navigation container */
.cus_pagination-nav {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive adjustments for pagination */
@media (max-width: 768px) {
    .cus_pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cus_pagination-nav {
        justify-content: center;
    }
}

/* Search wrapper already exists but ensuring it's used correctly */
.cus_search_wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 7px;
}

@media (min-width: 1024px) {
    .cus_search_wrapper {
        justify-content: flex-end;
    }
}

/* Search form already exists but ensuring width */
.cus_search_form {
    width: 100%;
    max-width: 28rem; /* matches max-w-md */
}

/* Table wrapper background */
.cus_table_wrapper.bg-white {
    background-color: #fff;
}

/* Additional classes for the template management page */

/* Page title large */
.cus_page-title-lg {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
}

/* Header flex with responsive behavior */
.cus_header-flex-md {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.flexCol{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}
@media (min-width: 768px) {
    .cus_header-flex-md {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.checkAllBox{
    background: #ffffff;
      padding: 8px 0px 2px 0;
    border-radius: 8px;
}
/* Margin top utility */
.cus_mt-1 {
    margin-top: 0.25rem;
}

/* Grid 2 columns */
.cus_grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cus_grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card hover effect */
.cus_card-hover {
    transition: all 0.2s ease;
}

.cus_card-hover:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Light card header */
.cus_card-header-light {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0; /* slate-100 */
    background-color: #f8fafc; /* slate-50/50 */
    display: flex;
    align-items: center;
}

/* Flex center with gap */
.cus_flex-center-between {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Gap utility */
.cus_gap-3 {
    gap: 0.75rem;
}

/* Icon circle */
.cus_icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background soft variants */
.cus_bg-emerald-soft {
    background-color: #d1fae5; /* emerald-100 */
}

.cus_bg-blue-soft {
    background-color: #dbeafe; /* blue-100 */
}

/* Text color variants */
.cus_text-emerald {
    color: #059669; /* emerald-600 */
}

.cus_text-blue {
    color: #2563eb; /* blue-600 */
}

/* Card title large */
.cus_card-title-lg {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b; /* slate-800 */
    margin: 0;
}

/* Card body large padding */
.cus_card-body-lg {
    padding: 1.5rem;
}

/* Form stack */
.cus_form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form row for 2 columns */
.cus_form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cus_form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small label */
.cus_label-sm {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b; /* slate-500 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Padding top */
.cus_pt-4 {
    padding-top: 1rem;
}

/* Success button */
.cus_btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    background-color: #10b981; /* emerald-500 */
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
}

.cus_btn-success:hover {
    background-color: #059669; /* emerald-600 */
}

@media (min-width: 768px) {
    .cus_btn-block-md {
        width: auto;
    }
}

/* Primary button block variant */
.cus_btn-primary.cus_btn-block-md {
    display: inline-flex;
    width: 100%;
}

@media (min-width: 768px) {
    .cus_btn-primary.cus_btn-block-md {
        width: auto;
    }
}

/* File input wrapper */
.cus_file-input-wrapper {
    position: relative;
}

/* File input styling */
.cus_file-input {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
}

.cus_file-input::file-selector-button {
    margin-right: 1rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #dbeafe; /* blue-50 */
    color: #2563eb; /* blue-700 */
    cursor: pointer;
    transition: all 0.2s ease;
}

.cus_file-input::file-selector-button:hover {
    background-color: #bfdbfe; /* blue-100 */
}

/* Gemini AI Page Specific Styles */

/* Section padding */
.cus_section-py {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header card */
.cus_header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* XL Icon */
.cus_icon-xl {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

/* Gradient background */
.cus_gradient-indigo {
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
}

/* Text 2xl */
.cus_text-2xl {
    font-size: 1.5rem;
}

/* Hero page title */
.cus_page-title-hero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Text small */
.cus_text-sm {
    font-size: 0.875rem;
}

/* Single grid */
.cus_grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Rounded card */
.cus_card-rounded {
    border-radius: 1rem;
    overflow: hidden;
}

/* Card header with between alignment */
.cus_card-header-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Card title with icon */
.cus_card-title-icon {
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Text indigo */
.cus_text-indigo {
    color: #6366f1;
}

/* Form stack large gap */
.cus_form-stack-lg {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Grid form layout */
.cus_grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: end;
}

@media (min-width: 768px) {
    .cus_grid-form {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Column spans */
.cus_col-span-4 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .cus_col-span-4 {
        grid-column: span 4;
    }
}

.cus_col-span-5 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .cus_col-span-5 {
        grid-column: span 5;
    }
}

.cus_col-span-3 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .cus_col-span-3 {
        grid-column: span 3;
    }
}

/* Uppercase label */
.cus_label-uppercase {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Input group */
.cus_input-group {
    position: relative;
}

/* Alternative file input */
.cus_file-input-alt {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.cus_file-input-alt::file-selector-button {
    margin-right: 1rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #eef2ff;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cus_file-input-alt::file-selector-button:hover {
    background-color: #e0e7ff;
}

/* Input icon wrapper */
.cus_input-icon-wrapper {
    position: relative;
}

/* Input icon left */
.cus_input-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Input with icon */
.cus_input-with-icon {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.cus_input-with-icon:focus {
    ring: 2px solid #6366f1;
    border-color: transparent;
}

/* Action group row */
.cus_action-group-row {
    display: flex;
    gap: 0.5rem;
}

/* Indigo button */
.cus_btn-indigo {
    background-color: #6366f1;
    color: #fff;
    font-weight: 700;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px #e0e7ff;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.cus_btn-indigo:hover {
    background-color: #4f46e5;
}

/* Flex 1 */
.cus_flex-1 {
    flex: 1;
}

/* Slate light button */
.cus_btn-slate-light {
    padding: 0.625rem 1rem;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.cus_btn-slate-light:hover {
    background-color: #e2e8f0;
}

/* Text slate */
.cus_text-slate {
    color: #94a3b8;
}

/* Card body with no padding */
.cus_card-body-p0 {
    padding: 0;
}

/* Result container */
.cus_result-container {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.cus_result-container::-webkit-scrollbar {
    width: 6px;
}

.cus_result-container::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 3px;
}

/* Empty state icon container */
.cus_empty-state-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    color: #94a3b8;
}

/* Huge icon */
.cus_icon-huge {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.2;
}

/* Loading center */
.cus_loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

/* Indigo spinner */
.cus_spinner-indigo {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid transparent;
    border-bottom: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Loading pulse animation */
.cus_loading-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Alert error */
.cus_alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* Exam Management Specific Styles */

/* Filter form layout */
.cus_filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Filter group */
.cus_filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Select wrapper */
.cus_select-wrapper {
    position: relative;
    min-width: 200px;
}

/* Filter select */
.cus_filter-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.cus_filter-select:focus {
    ring: 2px solid #3b82f6;
    border-color: transparent;
}

/* Select arrow */
.cus_select-arrow {
    position: absolute;
    inset-y: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #9ca3af;
    pointer-events: none;
}

.cus_select-arrow i {
    font-size: 0.75rem;
}

/* Filter actions */
.cus_filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filter button */
.cus_filter-btn {
    padding: 0.5rem 1rem;
    color: #fff;
    border: 1px solid var(--primary-bg);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cus_filter-btn:hover {
    background-color: var(--SaveAndCreateHoverBg);
    border-color: var(--SaveAndCreateHoverBg);
}

/* Filter clear button */
.cus_filter-clear {
    padding: 0.5rem 1rem;
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cus_filter-clear:hover {
    background-color: #d1d5db;
}

/* Rounded corners */
.cus_rounded-xl {
    border-radius: 0.75rem;
}

/* Text blue */
.cus_text-blue {
    color: #60a5fa;
}

/* Marks group */
.cus_marks-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Blue badge */
.cus_badge-blue {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Green badge */
.cus_badge-green {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Actions right alignment */
.cus_actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Published badge */
.cus_badge-published {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Emerald button */
.cus_btn-emerald {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #10b981;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.cus_btn-emerald:hover {
    background-color: #059669;
}

/* Schedule Container with Hover Animation */
.cus-schedule-container {
    position: relative;
    height: 1.5rem;
    cursor: default;
}

.cus-schedule-default {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cus-schedule-hover {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.cus-schedule-container:hover .cus-schedule-default {
    opacity: 0;
    transform: translateY(5px);
}

.cus-schedule-container:hover .cus-schedule-hover {
    opacity: 1;
    transform: translateY(0);
}
.cus_font-medium {
    font-weight: 500;
}
.cus_container-wide {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .cus_container-wide {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cus_container-wide {
        padding: 0 2rem;
    }
}

/* Header with border */
.cus_header-border {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Header padding */
.cus_header-padding {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Margin bottom 8 */
.cus_mb-8 {
    margin-bottom: 2rem;
}

/* Grid 4 columns */
.cus_grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cus_grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cus_grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Bold label */
.cus_label-bold {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.25rem;
}

/* Input field base */
.cus_input-field {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.cus_input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input group with prefix */
.cus_input-group {
    position: relative;
}

.cus_prefix {
    position: absolute;
    left: 0.75rem;
    top: 0.625rem;
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.cus_input-with-prefix {
    width: 100%;
    padding: 0.625rem 0.625rem 0.625rem 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.cus_input-with-prefix:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Space y 8 */
.cus_space-y-8 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card header flex */
.cus_card-header-flex {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Index badge */
.cus_index-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Gap 3 */
.cus_gap-3 {
    gap: 0.75rem;
}

/* Select small */
.cus_select-sm {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background-color: #f1f5f9;
    outline: none;
}

.cus_select-sm:focus {
    ring: 2px solid #3b82f6;
}

/* Add button */
.cus_btn-add {
    padding: 0.5rem 0.75rem;
    background-color: var(--primary-bg);
    color: #fff;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.cus_btn-add:hover {
    background-color: var(--SaveAndCreateHoverBg);
}

/* Rounded 2xl */
.cus_rounded-2xl {
    border-radius: 1rem;
}

/* Width 24 */
.cus_w-24 {
    width: 6rem;
}

/* Width 32 */
.cus_w-32 {
    width: 8rem;
}

/* Input disabled */
.cus_input-disabled {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    font-size: 0.75rem;
    color: #475569;
    cursor: not-allowed;
}

/* Input field small */
.cus_input-field-sm {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: transparent;
}

.cus_input-field-sm:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input error border */
.cus_input-error-border {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px #fee2e2;
}

/* Error text xs */
.cus_input-error-xs {
    font-size: 0.625rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* Available text */
.cus_available-text {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Action vertical */
.cus_action-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Difficulty button */
.cus_btn-difficulty {
    padding: 0.375rem 0.5rem;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.cus_btn-difficulty-active {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.cus_btn-difficulty:hover {
    background-color: #e2e8f0;
}

/* Questions button */
.cus_btn-questions {
    padding: 0.375rem 0.5rem;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.cus_btn-questions-active {
    background-color: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.cus_btn-questions:hover {
    background-color: #e2e8f0;
}

.cus_btn-questions-active:hover {
    background-color: #4338ca;
}

/* Table foot */
.cus_table-foot {
    background-color: #f8fafc;
}

.cus_table-foot td {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
}

/* Text right */
.cus_text-right {
    text-align: right;
}

/* Total weight */
.cus_total-weight {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 900;
    color: #2563eb;
}

/* Action footer wide */
.cus_action-footer-wide {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
}

/* Primary button large */
.cus_btn-primary-lg {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-bg);
    color: #fff;
    font-weight: 700;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cus_btn-primary-lg:hover {
    background-color: var(--SaveAndCreateHoverBg);
}

.cus_btn-primary-lg:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Outline button large */
.cus_btn-outline-lg {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cus_btn-outline-lg:hover {
    background-color: #f8fafc;
}

/* Loading indicator */
.cus_loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

/* Text blue */
.cus_text-blue {
    color: #60a5fa;
}

/* Margin right 1 */
.cus_me-1 {
    margin-right: 0.25rem;
}
.cus_p-12 {
    padding: 3rem;
}

/* Padding 8 */
.cus_p-8 {
    padding: 2rem;
}

/* Gap 2 */
.cus_gap-2 {
    gap: 0.5rem;
}

/* Column span 2 */
.cus_col-span-2 {
    grid-column: span 2;
}

/* Space y 6 */
.cus_space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Flex between */
.cus_flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Width 20 */
.cus_w-20 {
    width: 5rem;
}

/* Width 24 */
.cus_w-24 {
    width: 6rem;
}

/* Text italic */
.cus_italic {
    font-style: italic;
}

/* Items end */
.cus_items-end {
    align-items: flex-end;
}

/* Button small */
.cus_btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Small spinner */
.spinner-small {
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Padding y 2.5 */
.cus_py-2-5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* Padding x 8 */
.cus_px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Padding x 6 */
.cus_px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Background indigo soft */
.cus_bg-indigo-soft {
    background-color: #eef2ff;
}

/* Text indigo */
.cus_text-indigo {
    color: #6366f1;
}

/* Background white with primary text */
.cus_bg-white.cus_text-primary {
    background-color: #fff;
    color: var(--primary-bg);
}

/* Background green 500 */
.cus_bg-green-500 {
    background-color: #10b981;
}

/* Background rose 500 */
.cus_bg-rose-500 {
    background-color: #f43f5e;
}

/* Text white */
.cus_text-white {
    color: #fff;
}

/* Delete button */
.cus_btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Right position 3 */
.cus_right-3 {
    right: 0.75rem;
}

/* Shadow large */
.cus_shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Text 2xl */
.cus_text-2xl {
    font-size: 1.5rem;
}

/* Primary badge */
.cus_badge-primary {
    background-color: var(--primary-bg);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-block;
}

/* Border none */
.cus_border-none {
    border: none;
}
.fa-trash, .fa-trash-alt{
    color: var(--deleteIconColor) !important;
}

.flexWF-JCenter {
        width: 100%;
    display: flex;
    justify-content: center;
}
.InputAlign3{
    width: 100%;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.InputAlign4{
    width: 100%;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

/* Questions/Index: level, subject, topic, subtopic, wider search */
.InputAlignQuestionsIndex {
    width: 100%;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr minmax(200px, 1.75fr);
    gap: 10px;
}

.fixWidthBtn{
    display: flex;
    justify-content: center;
    max-width: 170px;
    border-radius: 8px;
    align-items: center;
    gap: 2px;
        padding: 0 8px;
        background: #e2fdff;
}

.InputAlign3CenterPadding{
        width: 100%;
    justify-content: center;
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0;
}

/* Container & Headers */
.cus_subtitle { color: #6c757d; font-size: 0.95rem; margin-top: 5px; }
.cus_main-section { margin-top: 20px; }

/* Catchy Gradient Card */
.cus_card-alt {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.cus_card-header-gradient {
    background: linear-gradient(45deg, #ccc5d3, #6366f1);
    padding: 15px 25px;
}

/* Container Spacing */
.cus_file-container {
    width: 100%;
    margin-top: 10px;
}

/* Hide the actual input */
.cus_file-input {
    display: none;
}

/* The Interactive Area */
.cus_file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 20px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover & Drag Effects */
.cus_file-label:hover {
    background-color: #f1f5f9;
    border-color: #6366f1;
}

/* Inner Content Styling */
.cus_file-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.cus_file-content i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 5px;
}

.cus_file-text {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.cus_file-types {
    font-size: 0.8rem;
    color: #64748b;
}

/* File Name Status */
.cus_file-status {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 500;
    text-align: center;
}
/* Form Layout */
.cus_form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.cus_form_footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

/* Icons & Colors for Labels */
.cus_label_lvl::before { content: "\f5fd"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 8px; color: #6366f1; }
.cus_label_sub::before { content: "\f02d"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 8px; color: #10b981; }
.cus_label_file::before { content: "\f1c1"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 8px; color: #ef4444; }
.cus_label_inst::before { content: "\f075"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 8px; color: #f59e0b; }
/* The Grid Container */
.cus_stats-grid {
    display: grid;
    /* 4 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Square Card Logic */
.cus_stat-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1; /* Forces width and height to be equal */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.cus_stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Inner Centering */
.cus_stat-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cus_stat-icon {
    font-size: 2rem;
}

.cus_stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}
/* Review Card Structure */
.cus_review-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.cus_q-badge {
    background: #6366f1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.cus_status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Color Palette for Status */
.bg-light-success { background: #ecfdf5; }
.bg-light-danger { background: #fef2f2; }

/* Question Body */
.cus_question-text {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 600;
}


/* Option Review Styles */
.cus_review-option-item {
    padding: 12px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.cus_review-option-item.is-correct {
    border-color: #10b981;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.cus_review-option-item.is-wrong {
    border-color: #ef4444;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.small-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Subjective Box */
.cus_answer-box {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    color: #334155;
    border-left: 3px solid #cbd5e1;
    font-style: italic;
}

/* Footer & Comments */
.cus_review-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.cus_comment-box {
    background: #fffbeb;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.9rem;
}
.cus_stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin: 0;
}

/* Colorful Accents (Bottom Bar) */
.cus_border-success { border-bottom: 5px solid #10b981; }
.cus_border-danger { border-bottom: 5px solid #ef4444; }
.cus_border-info { border-bottom: 5px solid #0ea5e9; }
.cus_border-primary { border-bottom: 5px solid #6366f1; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .cus_stats-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 480px) {
    .cus_stats-grid { 
        grid-template-columns: 1fr;
        max-width: 250px; /* Prevents card from becoming too huge on small phones */
        margin: 0 auto 30px auto; 
    }
}
/* Buttons */
.cus_btn_primary, .cus_btn_secondary, .cus_btn_hero {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.cus_btn_primary { background: #6366f1; color: #fff; }
.cus_btn_primary:hover { background: #4f46e5; transform: translateY(-2px); }

.cus_btn_secondary { background: #e5e7eb; color: #4b5563; }

.cus_btn_hero {
    background: #10b981;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}
.cus_scroll_container {
    max-height: 500px;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 10px;
    padding: 15px;
}

.cus_empty_state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.cus_empty_state i { font-size: 3rem; margin-bottom: 10px; opacity: 0.3; }

.cus_global_actions {
    text-align: center;
    margin: 30px 0 50px 0;
}

.cus_btn-cancel .fas{
    color: var(--destructiveText) !important;
}
.cus_btn-save .fas, .cus_add_btn .fas, .cus_btn-back .fas{
    color: white !important;
}



/* Menu Tree Layout */
.cus_menu-tree {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.cus_parent-row {
    background: #f8fafc;
    transition: all 0.2s ease;
    border-left: 4px solid #6366f1 !important;
}

.cus_parent-row:hover {
    background: #f1f5f9;
}

.cus_child-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    border-left: 2px dashed #e2e8f0;
}

.cus_child-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s;
}

.cus_child-item:hover {
    border-color: #cbd5e1;
    background: #fdfdfd;
}

/* Checkbox Alignment */
.cus_checkbox-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #334155;
    user-select: none;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: rgb(255, 255, 255);
  border: 2px solid black;
  cursor: pointer;
  position: relative;
}

/* checked state */
input[type="checkbox"]:checked {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

/* tick mark */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* Scrollbar for the menu tree */
.cus_menu-tree::-webkit-scrollbar {
    width: 6px;
}
.cus_menu-tree::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Loading status */
.cus_loading-status {
    padding: 5px;
}
.fa-bullhorn{
    color: #00c067;
}

/* Exam Edit — syllabus breakdown table: fixed columns so Configuration aligns with header */
.cus_table-exam-syllabus {
    table-layout: fixed;
    width: 100%;
}

.cus_table-exam-syllabus .cus_col-exam-topic {
    width: 18%;
    min-width: 10rem;
}

.cus_table-exam-syllabus .cus_col-exam-qtype {
    width: 12%;
    min-width: 7rem;
}

.cus_table-exam-syllabus .cus_col-exam-weight {
    width: 8%;
    min-width: 4.5rem;
}

.cus_table-exam-syllabus .cus_col-exam-nq {
    width: 14%;
    min-width: 8rem;
}

.cus_table-exam-syllabus .cus_col-exam-instr {
    width: 30%;
    min-width: 0;
}

.cus_table-exam-syllabus .cus_col-exam-config {
    width: 18%;
    min-width: 9rem;
}

.cus_table-exam-syllabus .cus_input-exam-instr {
    max-width: 100%;
    box-sizing: border-box;
}

/* Question pool preview modal (ExamCreateUtils.renderQuestionPoolPreview) */
.cus_pool-preview-table-wrap {
    max-height: 70vh;
    overflow-y: auto;
}

.cus_pool-preview-col-type {
    width: 12rem;
}

.cus_pool-preview-col-weight {
    width: 5rem;
}

.cus_pool-preview-question-text {
    max-height: 4.5rem;
    overflow-y: auto;
}

/* --- Student Dashboard (Views/StudentDashboard/Index.cshtml) --- */
.cus_stat_card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #f3f4f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cus_stat_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

a.cus_stat_card_link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

a.cus_stat_card_link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 1rem;
}

a.cus_stat_card_link .cus_stat_card {
    height: 100%;
}

.cus_stat_card_hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.35;
}

.cus_stat_icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cus_stat_icon--emerald {
    background-color: #ecfdf5;
    color: #10b981;
}

.cus_stat_icon--blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.cus_stat_icon--amber {
    background-color: #fffbeb;
    color: #f59e0b;
}

.cus_stat_label {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.cus_stat_link {
    font-size: 0.85rem;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
}

.cus_stat_link:hover {
    color: var(--primary-bg);
}

.cus_exam_datetime_cell {
    font-size: 0.85rem;
}

.cus_status_pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cus_status_pill--attempted {
    background-color: #e0f2fe;
    color: #0369a1;
}

.cus_status_pill--registered {
    background-color: #dcfce7;
    color: #15803d;
}

.cus_status_pill--available {
    background-color: #f3f4f6;
    color: #4b5563;
}

.cus_btn_primary_sm {
    background-color: #10b981;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cus_btn_outline_sm {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.cus_btn_outline_sm:hover {
    background-color: #eff6ff;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    filter: grayscale(1);
}

.take-exam-link.pulse {
    animation: cus_take_exam_pulse 1s ease-in-out infinite;
}

@keyframes cus_take_exam_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.templated-exam-action-cell {
    white-space: nowrap;
    min-width: 240px;
    width: 240px;
}

.templated-exam-action-btns {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.templated-exam-action-btns a {
    flex-shrink: 0;
    white-space: nowrap;
}

.cus_sa_score_ring {
    width: 140px;
    height: 140px;
}

.cus_progress_sa_height {
    height: 8px;
}

.cus_sa_progress_bar {
    width: 0%;
}

/* Gemini Q extractor — result table & per-question figure upload */
.gemini-result-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.gemini-result-table {
    margin-bottom: 0;
}

.gemini-result-question-cell {
    max-width: 280px;
    word-break: break-word;
}

.gemini-options-cell {
    min-width: 220px;
    max-width: 360px;
    vertical-align: top;
}

.gemini-options-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gemini-option-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.gemini-option-letter {
    flex: 0 0 1.25rem;
    font-weight: 600;
    color: #495057;
    padding-top: 0.25rem;
}

.gemini-option-text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.gemini-correct-option-cell {
    min-width: 72px;
    max-width: 120px;
    vertical-align: top;
    word-break: break-word;
}

.gemini-figure-upload-wrap {
    min-width: 200px;
    max-width: 260px;
}

.gemini-figure-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
}

.gemini-figure-hint {
    margin-top: 0.25rem;
}

.gemini-figure-preview {
    max-width: 100%;
    max-height: 120px;
    margin-top: 0.35rem;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.gemini-figure-preview-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cus_child-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .InputAlign4
 {
    grid-template-columns: 1fr 1fr;
}
    .InputAlignQuestionsIndex {
    grid-template-columns: 1fr 1fr;
}
}

/* Header: role switcher (View as) */
.cus_header-role-switcher-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.cus_header-role-switcher-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}
.cus_header-role-select {
    min-width: 7.5rem;
    max-width: 10rem;
}
@media (max-width: 576px) {
    .cus_header-role-switcher-label {
        display: none;
    }
    .cus_header-role-select {
        max-width: 7rem;
    }
}

/* Login: Google sign-in */
.cus_btn-google {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 0.5rem;
    background: #fff;
    color: #3c4043;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}
.cus_btn-google:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
}
