.category-add-container-form {
    width: 50vw;
    color: black;
    margin: auto;
}

.textInput-field {
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    border: 1px solid #4a4d52;
    border-radius: 0.375rem;
    color: #0f172a;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

/* **************Admin Layout******************* */
/* LAYOUT WRAPPER */
.admin-layout {
    display: flex;
    height: 100vh;
    background-color: #f9fafb;
    overflow: hidden;
}

/* SIDEBAR */
.admin-layout-sidebar {
    background-color: #111827;
    color: #ffffff;
    width: 260px;
    transition: width 0.4s ease;
    overflow-y: auto;
}

.admin-layout-sidebar.collapsed {
    width: 80px;
}

/* MAIN AREA */
.admin-layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */
.admin-layout-header {
    height: 80px;
    flex-shrink: 0;
    background-color: #ffffff;
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* CONTENT */
.admin-layout-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f3f4f6;
}

/* LOADING STATE */
.admin-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
}

/* SPINNER */
.admin-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid #2563eb;
    border-top-color: transparent;
    animation: admin-spin 1s linear infinite;
}

@keyframes admin-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ********************************* */

/* ************Admin Header******** */
.adminheader-header {
    height: 100%;
    /* width: 100%; */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.25);
}

.adminheader-profile-wrapper {
    position: relative;
}

.adminheader-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #111827;
}

.adminheader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
}

.adminheader-username {
    font-weight: 500;
}

.adminheader-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.adminheader-profile-wrapper:hover .adminheader-arrow {
    transform: rotate(180deg);
}

.adminheader-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    width: 160px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10;
}

.adminheader-profile-wrapper:hover .adminheader-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.adminheader-logout-btn {
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
}

.adminheader-logout-btn:hover {
    background-color: #f3f4f6;
}

/* *************** Admin sidebar *************** */
/* SIDEBAR WRAPPER */
.adminsidebar {
    width: 260px;
    height: 100vh;
    background-color: #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: width 0.4s ease;
}

/* COLLAPSED */
.adminsidebar.collapsed {
    width: 80px;
}

/* TOP SECTION */
.adminsidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

/* LOGO */
.adminsidebar-logo {
    width: 64px;
    height: auto;
}

.adminsidebar.collapsed .adminsidebar-logo {
    display: none;
}

/* TOGGLE BUTTON */
.adminsidebar-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.adminsidebar-toggle span {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* NAV */
.adminsidebar-nav {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px;
}

/* NAV LINK */
.adminsidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.3s ease, transform 0.2s ease;
}

.adminsidebar-link:hover {
    background-color: #374151;
}

/* ACTIVE */
.adminsidebar-link.active {
    background-color: #2563eb;
}

/* ICON */
.adminsidebar-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

/* SCALE ICON ON HOVER */
.adminsidebar-link:hover .adminsidebar-icon,
.adminsidebar-link.active .adminsidebar-icon {
    transform: scale(1.1);
}

/* TEXT */
.adminsidebar-text {
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* HIDE TEXT WHEN COLLAPSED */
.adminsidebar.collapsed .adminsidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* CENTER ICON WHEN COLLAPSED */
.adminsidebar.collapsed .adminsidebar-link {
    justify-content: center;
}

/* *************** Admin sidebar *************** */


.admin_no_data-section {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background-color: #f9fafb;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    text-transform: capitalize;
}

.textInput-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.textInput-field:focus {
    outline: none;
    border-color: #475569;
    box-shadow: 0 0 0 1px #475569;
    opacity: 0.9;
}

.category-grid {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.admin-modal {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.admin-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-form-submit-primary {
    background: linear-gradient(to right, #60a5fa, #4f46e5);
    color: white;
}

.admin-form-submit-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #3730a3);
}

.admin-form-submit-primary-loading {
    opacity: 0.7;
    cursor: not-allowed;
    color: #666;
    background: linear-gradient(to right, #60a5fa, #4f46e5);
}

.admin-btn-cancel {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.admin-btn-cancel:hover {
    background-color: #c3c5ca;
}

.upload-box {
    position: relative;
    width: 100%;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
    overflow: hidden;
}

.upload-box:hover {
    background-color: #f3f4f6;
}

.category-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    /* 10 = 2.5rem */
}

@media (min-width: 1024px) {
    .category-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cross-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem;
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.cross-button:hover {
    background-color: #dc2626;
}


.image-upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #475569;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.image-upload-btn:hover {
    background-color: #334155;
}


/* subcategory card */
/* MAIN CARD */
.subcategory-card {
    max-width: 350px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.subcategory-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* IMAGE */
.subcategory-card-image-wrapper {
    position: relative;
    height: 200px;
    background: #e5e7eb;
}

.subcategory-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ACTION BUTTONS */
.subcategory-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.subcategory-card-edit,
.subcategory-card-delete {
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: 0.2s ease;
}

.subcategory-card-edit:hover {
    background: #ebf3ff;
}

.subcategory-card-delete:hover {
    background: #ffeaea;
}

.subcategory-card-icon {
    width: 18px;
    height: 18px;
}

.subcategory-card-icon.edit {
    color: #2563eb;
}

.subcategory-card-icon.delete {
    color: #dc2626;
}

/* CONTENT */
.subcategory-card-content {
    padding: 20px;
}

.subcategory-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.subcategory-card-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SPECS */
.subcategory-card-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 5px;
}

.subcategory-card-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
}

.subcategory-card-spec-icon {
    width: 20px;
    height: 20px;
}

.subcategory-card-spec-icon.blue {
    color: #3b82f6;
}

.subcategory-card-spec-icon.green {
    color: #22c55e;
}

.subcategory-card-spec-icon.orange {
    color: #f97316;
}

.subcategory-card-spec-label {
    font-weight: 600;
    font-size: 14px;
}

.subcategory-card-spec-value {
    font-size: 14px;
}


.detailinput-group {
    margin-bottom: 1.5rem;
}

.detailinput-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.detailinput-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.detailinput-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.detailinput-field {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.detailinput-btn {
    padding: 8px;
    margin-right: 6px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}

.detailinput-btn:hover {
    background: #ecfdf5;
}

.detailinput-icon {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.detailinput-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.detailinput-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.detailinput-remove {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px;
    transition: background 0.2s ease;
}

.detailinput-remove:hover {
    background: #dbeafe;
}