/* ===========================
   SKUs Page Layout
   =========================== */

body.skus-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Override navbar for SKUs page */
.skus-page .navbar {
    background-color: #1a202c;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.skus-page .nav-content {
    display: flex;
    align-items: center;
}

.skus-page .logo-img {
    height: 32px;
}

.skus-container {
    display: flex;
    min-height: calc(100vh - 72px);
    position: relative;
}

/* ===========================
   Sidebar
   =========================== */

.sidebar {
    width: 220px;
    background-color: #374151;
    color: #ffffff;
    padding: 24px 0;
    flex-shrink: 0;
    transition: width 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-toggle {
    position: absolute;
    top: 16px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-toggle .material-icons-outlined {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle .material-icons-outlined {
    transform: rotate(180deg);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    padding: 0 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    pointer-events: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.menu-item:has(.menu-link) {
    padding: 0;
}

.menu-item .menu-link {
    padding: 10px 20px;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 10px;
}

.menu-text {
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.menu-item.active {
    background-color: rgba(24, 218, 198, 0.15);
    color: #18dac6;
    border-left: 3px solid #18dac6;
    padding-left: 17px;
}

.menu-item.active:has(.menu-link) {
    padding-left: 0;
}

.menu-item.active .menu-link {
    padding-left: 17px;
}

.sidebar.collapsed .menu-item.active {
    border-left: none;
    border-bottom: 3px solid #18dac6;
    padding-left: 10px;
    padding-bottom: 7px;
}

.sidebar.collapsed .menu-item.active:has(.menu-link) {
    padding-left: 0;
    padding-bottom: 0;
}

.sidebar.collapsed .menu-item.active .menu-link {
    padding-left: 10px;
    padding-bottom: 7px;
}

.menu-item.submenu-item {
    padding-left: 52px;
    font-size: 0.875rem;
}

.menu-item.submenu-item:has(.menu-link) {
    padding-left: 0;
}

.menu-item.submenu-item .menu-link {
    padding-left: 52px;
}

.sidebar.collapsed .menu-item.submenu-item {
    padding-left: 10px;
}

.sidebar.collapsed .menu-item.submenu-item:has(.menu-link) {
    padding-left: 0;
}

.sidebar.collapsed .menu-item.submenu-item .menu-link {
    padding-left: 10px;
}

.menu-item.active-sub {
    background-color: rgba(24, 218, 198, 0.1);
    color: #18dac6;
}

.menu-text-stacked {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.text-line {
    display: block;
}

.menu-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Main Content Area
   =========================== */

.main-content {
    flex: 1;
    display: flex;
    background-color: #f5f5f5;
    overflow: hidden;
}

.page-wrapper {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-header {
    background-color: #ffffff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #2c2c2c;
}

.breadcrumb .material-icons-outlined {
    font-size: 24px;
    color: #718096;
}

.breadcrumb-text {
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.org-name {
    font-size: 0.875rem;
    color: #2c2c2c;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn .material-icons-outlined {
    font-size: 24px;
}

.icon-btn:hover {
    color: #2c2c2c;
}

/* ===========================
   Form Container
   =========================== */

.form-container {
    margin: 32px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h1 {
    font-size: 1.75rem;
    color: #000000;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: #718096;
}

/* ===========================
   Form Sections
   =========================== */

.form-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.125rem;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 600;
}

.section-description {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 24px;
}

/* ===========================
   Form Fields
   =========================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: #2c2c2c;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #cbd5e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #18dac6;
    box-shadow: 0 0 0 3px rgba(24, 218, 198, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===========================
   Select Dropdown
   =========================== */

.select-wrapper {
    position: relative;
    background-color: #ffffff;
    border-radius: 6px;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: #2c2c2c;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select-wrapper select:hover {
    border-color: #cbd5e0;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #18dac6;
    box-shadow: 0 0 0 3px rgba(24, 218, 198, 0.1);
}

.select-wrapper::after {
    content: 'expand_more';
    font-family: 'Material Icons Outlined';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 24px;
    color: #718096;
}

/* ===========================
   Attributes Section
   =========================== */

.attributes-empty {
    text-align: center;
    padding: 40px 20px;
    background-color: #f7fafc;
    border-radius: 6px;
    margin-bottom: 16px;
}

.attributes-empty p {
    color: #718096;
    margin-bottom: 16px;
}

.btn-add-attribute {
    background-color: transparent;
    color: #000000;
    border: 2px solid #18dac6;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-add-attribute .material-icons-outlined {
    font-size: 20px;
}

.btn-add-attribute:hover {
    background-color: #18dac6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 218, 198, 0.2);
}

.form-note {
    font-size: 0.8125rem;
    color: #718096;
    font-style: italic;
}

/* ===========================
   Form Actions
   =========================== */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.btn-cancel {
    background-color: transparent;
    color: #718096;
    border: 1px solid #cbd5e0;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
}

/* ===========================
   Popup Assistant
   =========================== */

.popup-assistant {
    width: 320px;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.assistant-header span {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 0.9375rem;
}

.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn .material-icons-outlined {
    font-size: 24px;
}

.close-btn:hover {
    color: #2c2c2c;
}

.assistant-body {
    padding: 24px 20px 80px 20px;
    flex: 1;
    overflow-y: auto;
}

.assistant-greeting {
    color: #2c2c2c;
    margin-bottom: 16px;
}

.assistant-actions {
    display: flex;
    gap: 8px;
}

.assistant-icon-btn {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-icon-btn .material-icons-outlined {
    font-size: 24px;
    color: #718096;
}

.assistant-icon-btn:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.assistant-footer {
    padding: 16px 16px;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 320px;
    background-color: #ffffff;
    z-index: 1001;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.input-actions-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.assistant-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: #2c2c2c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.assistant-input:hover {
    border-color: #cbd5e0;
}

.assistant-input:focus {
    outline: none;
    border-color: #18dac6;
    box-shadow: 0 0 0 3px rgba(24, 218, 198, 0.1);
}

.assistant-input::placeholder {
    color: #a0aec0;
}

.attach-icon {
    transform: rotate(0deg);
}

.input-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.input-action-btn:hover {
    background-color: #e2e8f0;
    color: #4a5568;
}

.input-action-btn .material-icons-outlined {
    font-size: 20px;
    font-weight: 300;
}

.input-submit-btn {
    background-color: #18dac6;
    border: none;
    cursor: pointer;
    color: #000000;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.input-submit-btn:hover {
    background-color: #14c4b0;
}

.input-submit-btn .material-icons-outlined {
    font-size: 18px;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 992px) {
    .skus-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        flex-direction: column;
    }

    .popup-assistant {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 300px;
    }

    .assistant-footer {
        width: 100%;
    }

    .form-container {
        margin: 24px;
        padding: 24px;
    }

    .content-header {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .header-right {
        gap: 12px;
    }

    .org-name {
        display: none;
    }

    .form-container {
        margin: 16px;
        padding: 20px;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 16px 0;
    }

    .form-container {
        margin: 12px;
        padding: 16px;
    }

    .content-header {
        padding: 12px 16px;
    }

    .breadcrumb {
        font-size: 0.875rem;
    }
}
