/* Path: admin\css\style.css */
/* Admin Layout */
body {
    min-height: 100vh;
    display: flex;
    background-color: var(--background);
}

.admin-sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 1rem .5rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-header .logo {
    height: 40px;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: var(--yellow);
    color: white;
}

.nav-item i {
    width: 20px;
    margin-right: 1rem;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 1rem;
}

.admin-header {
    background: white;
    padding: 1rem;
    margin: -1rem -1rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.boutique-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Login Page */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.login-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--dark);
    font-weight: 500;
}

.login-form .btn:hover {
    opacity: 0.9;
}

/* Profile Page */
.profile-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.current-logo {
    margin-top: 1rem;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.current-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hours-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.day-label {
    min-width: 100px;
    font-weight: 500;
}

.hours-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-inputs.hidden {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }

    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 60px;
    }

    .form-section {
        padding: 1rem;
    }

    .header-content {
        flex-direction: row;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn-outline-danger {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .category-section {
        padding: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-item {
        font-size: 0.85rem;
    }

    .color-dot {
        width: 14px;
        height: 14px;
    }
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--dark-gray);
}

.stat-info p {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

/* Recent Reviews Section */
.recent-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.review-card {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-header h4 {
    margin: 0;
    font-size: 1rem;
}

.stars {
    color: var(--yellow);
}

.review-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.product-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h3 {
    margin: 0;
        margin-bottom: 1rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Color filter styles */
.color-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.color-option input[type="checkbox"] {
    display: none;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.color-option input[type="checkbox"]:checked + .color-circle {
    transform: scale(1.1);
    border-color: var(--yellow);
}

.color-name {
    font-size: 0.9rem;
}

/* Regular filter option styles */
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 12px;
    transition: transform 0.2s;
}

.filter-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--yellow);
    border-color: var(--yellow);
}

.filter-option input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Image Management */
.current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
}

.image-item.dragging {
    opacity: 0.5;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    border: 2px dashed #4a90e2;
    background: #f8f9fa;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

.remove-image:hover {
    background: rgba(255, 0, 0, 1);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions .btn-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.header-actions .btn-link:hover {
    color: var(--yellow);
}

.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

/* Orders Container */
.orders-container {
    padding: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    padding: 15px;
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-pending_payment {
    background: #cce5ff;
    color: #004085;
}

.status-payment_failed {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    padding: 15px;
}

.order-items {
    margin: 15px 0;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.item-card {
    display: flex;
    gap: 15px;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1em;
    margin: 0 0 5px 0;
}

.customer-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.order-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.cancel-modal .reason-option {
    margin-bottom: 10px;
}

.cancel-modal .custom-reason {
    margin-top: 15px;
}
.orders-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f6c445;
}
.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}
.section-header .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}
.empty-section {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}
/* Filter Section Styles */
.form-section#filters-section {
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

.form-section#filters-section h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
}

.filter-instructions {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #e9f7fe;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.filter-instructions p {
    margin: 0;
    color: #2980b9;
    font-size: 0.9rem;
}

/* Accordion Styles */
.filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-accordion-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.filter-accordion-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background-color: #fff;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
}

.filter-accordion-header:hover {
    background-color: #f5f5f5;
}

.filter-accordion-header.open {
    border-bottom-color: #eee;
    background-color: #f5f7fa;
}

.filter-title {
    font-weight: 600;
    color: #333;
}

.filter-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.selection-count {
    font-size: 0.85rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.filter-accordion-content {
    max-height: 0;
    overflow: auto;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.filter-accordion-content.active {
    max-height: 500px;
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* Filter Options Styles */
.filter-options-grid,
.color-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

.filter-option.selected {
    background-color: #e9f5ff;
}

.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    position: relative;
}

.filter-option.selected .checkbox-custom {
    border-color: #3498db;
    background-color: #3498db;
}

.filter-option.selected .checkbox-custom:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Color Option Styles */
.color-options-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.color-option:hover {
    background-color: #f5f5f5;
}

.color-option.selected {
    background-color: #e9f5ff;
}

.color-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    position: relative;
}

.color-option.selected .color-circle:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 0 2px black;
    font-size: 16px;
}

.color-name {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
}
/* Path: admin\css\bg-removal.css */
/* Styles pour la fonctionnalité de suppression d'arrière-plan */

/* Conteneur des actions d'image */
.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

/* Bouton de suppression d'arrière-plan */
.remove-bg-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #007bff;
    transition: all 0.2s ease;
}

.remove-bg-btn:hover {
    background: #fff;
    color: #0056b3;
}

.remove-bg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bouton de restauration d'image */
.restore-image-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #28a745;
    transition: all 0.2s ease;
}

.restore-image-btn:hover {
    background: #fff;
    color: #218838;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 400px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Styles pour les états de progression */
.progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Aperçu avant/après pour la suppression d'arrière-plan */
.image-comparison {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-comparison .before,
.image-comparison .after {
    width: 100%;
    display: block;
}

.image-comparison .after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    border-left: 2px solid white;
}

.image-comparison::before {
    content: '⟻ Avant';
    position: absolute;
    left: 20px;
    top: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.image-comparison::after {
    content: 'Après ⟼';
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.category-tags span {
    background: var(--light-gray);
    padding: 0.35rem 0.85rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

.category-tags span:hover {
    background-color: var(--yellow);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
.hidden{
    display: none;
}
/* From Uiverse.io by Wendell47 */ 
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 0;
    font-size: 90%;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10rem;
    transition: all 0.02s;
    font-weight: bold;
    cursor: pointer;
    color: rgb(37, 37, 37);
    z-index: 0;
    box-shadow: 0 0px 7px -5px rgba(0, 0, 0, 0.5);
}

.button:hover {
  background: rgb(193, 228, 248);
  color: rgb(33, 0, 85);
}

.button:active {
  transform: scale(0.97);
}

.hoverEffect {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hoverEffect div {
  background: rgb(222, 0, 75);
  background: linear-gradient(
    90deg,
    rgba(222, 0, 75, 1) 0%,
    rgba(191, 70, 255, 1) 49%,
    rgba(0, 212, 255, 1) 100%
  );
  border-radius: 40rem;
  width: 10rem;
  height: 10rem;
  transition: 0.4s;
  filter: blur(20px);
  animation: effect infinite 3s linear;
  opacity: 0.5;
}

.button:hover .hoverEffect div {
  width: 8rem;
  height: 8rem;
}

@keyframes effect {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Path: admin/css/style.css */
/* Appended: 2025-04-20 - Added Tagify styles */

/* General Styles - Assume these exist */
/* ... existing styles ... */


/* Tagify Customizations */
.tagify{
    --tags-border-color: #ced4da;
    --tags-hover-border-color: #86b7fe; /* Match Bootstrap focus */
    --tags-focus-border-color: #86b7fe;
    --tag-bg: #e2e3e5; /* Lighter grey */
    --tag-hover-bg: #d6d8db;
    --tag-text-color: #495057;
    --tag-pad: 0.4em 0.7em; /* Slightly larger padding */
    --tag-remove-btn-color: #6c757d;
    --tag-remove-btn-bg--hover: #dc3545; /* Red on hover */
    border-radius: 0.375rem; /* Match Bootstrap inputs */
    border: 1px solid var(--tags-border-color);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.tagify:hover:not(.tagify--focus){
    border-color: var(--tags-hover-border-color);
}

.tagify--focus{
    border-color: var(--tags-focus-border-color);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); /* Match Bootstrap focus */
}

.tagify__tag{
    margin: 5px; /* Consistent margin */
    border-radius: 0.25rem; /* Slightly rounded tags */
}

.tagify__tag > div{
    padding: var(--tag-pad);
}

/* Tag remove button */
.tagify__tag__removeBtn{
    font-size: 110%; /* Make X slightly larger */
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}

.tagify__tag__removeBtn::after {
    /* Ensure the 'x' is visible */
    color: var(--tag-remove-btn-color);
}


.tagify__tag:hover:not([readonly]) .tagify__tag__removeBtn {
    color: white; /* White X on hover */
    background-color: var(--tag-remove-btn-bg--hover); /* Red background on hover */
    opacity: 1;
}

/* Dropdown suggestions */
.tagify__dropdown{
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,.15); /* Bootstrap dropdown border */
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); /* Bootstrap dropdown shadow */
    z-index: 1060; /* Ensure dropdown is above other elements */
}

.tagify__dropdown__item{
    padding: .5rem 1rem; /* Bootstrap dropdown item padding */
    color: #212529; /* Bootstrap dropdown item color */
}

.tagify__dropdown__item--active{
    background-color: #e9ecef; /* Bootstrap active item background */
    color: #000;
}

.tagify__dropdown__item:hover:not(.tagify__dropdown__item--active){
    background-color: #f8f9fa; /* Bootstrap hover background */
    color: #1e2125;
}

/* Add this if you want the create new tag option styled */
.tagify__dropdown__item--new .tagify__dropdown__item__title{
    font-style: italic;
    color: #0d6efd; /* Bootstrap primary color */
}

/* Image Management Styles */
.image-manager { margin-top: 1rem; }
.image-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 4px;
    min-height: 120px; /* Ensure drop area is visible */
    background-color: #fdfdfd;
}
.image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    border: 1px solid #eee;
    background-color: #f8f9fa;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transition */
}
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove extra space below image */
}
.image-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.7); /* Bootstrap danger color, semi-transparent */
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
    z-index: 1;
}
.image-item .remove-image:hover {
    background: rgba(220, 53, 69, 1); /* Bootstrap danger color, opaque */
}
.image-item .remove-image i {
    font-size: 10px; /* Adjust icon size */
    line-height: 1; /* Align icon better */
}

/* Drag and Drop States */
.image-item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.image-item.drag-over {
    border: 2px dashed #0d6efd; /* Bootstrap primary color */
    background-color: #e7f1ff;
}

/* Placeholder text when list is empty */
.image-list .text-muted {
    display: none; /* Hidden by default */
}
.image-list:empty .text-muted {
    display: block; /* Shown when list is empty */
}

/* ... rest of existing style.css ... */


/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-options-grid,
    .color-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 576px) {
    .filter-options-grid,
    .color-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .filter-accordion-header {
        padding: 0.75rem 1rem;
    }
}
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .order-items {
        grid-template-columns: 1fr;
    }

    .order-actions {
        flex-direction: column;
    }
}

.fa-spinner {
    font-size: 1.5rem;
    color: var(--yellow);
    margin: 1rem 0;
}

/* Alert styling */
.alert {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.alert .btn-link {
    padding: 0;
    color: inherit;
    text-decoration: underline;
    font-size: 0.9rem;
}



.product-info .price {
    color: var(--yellow);
    font-weight: 600;
    margin: 0.5rem 0;
}

.product-info .category {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.product-actions {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Image Preview */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item{
    width: 150px;
    height: 150px;
}
.image-item img{
    max-width: 100%;
    max-height: 100%;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.category-tag {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.category-tag input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-tag span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    color: var(--dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform-origin: center;
}

.category-tag:hover span {
    background-color: var(--medium-gray);
}

.category-tag input[type="checkbox"]:checked + span {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: white;
    transform: scale(1.05);
}

.category-tag input[type="checkbox"]:focus + span {
    box-shadow: 0 0 0 2px rgba(246, 196, 69, 0.3);
}

.category-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

/* Product Filters */
.product-filter {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.filter-label {
    color: var(--dark-gray);
    margin-right: 0.5rem;
}

.filter-values {
    color: var(--dark);
}

.product-filters {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-gray);
}

.filter-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-values {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.25rem;
    border: 1px solid var(--medium-gray);
    cursor: help;
}

/* Filter Groups in Edit Form */
.filter-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 1.1rem;
    color: var(--dark);
}
.bg-danger-subtle {
    background-color: var(--bs-danger-bg-subtle) !important;
}
.text-danger-emphasis {
    color: var(--bs-danger-text-emphasis) !important;
}

.bg-warning-subtle {
    background-color: var(--bs-warning-bg-subtle) !important;
}
.text-warning-emphasis {
    color: var(--bs-warning-text-emphasis) !important;
}

.bg-success-subtle {
    background-color: var(--bs-success-bg-subtle) !important;
}
.text-success-emphasis {
    color: var(--bs-success-text-emphasis) !important;
}
