/**
 * Enhanced Admin Styles for Kanva Quotes
 * Clean, modern UI styles using official Kanva Botanicals color palette
 */

:root {
    /* Official Kanva Botanicals Color Palette */
    --dark-fir: #17351A;
    --kanva-green: #93D500;
    --pure-white: #FFFFFF;
    --chimney: #4D5358;
    --greystone: #B7B9B4;
    
    /* Clean Modern Admin Theme */
    --admin-primary: var(--kanva-green);
    --admin-secondary: var(--greystone);
    --admin-accent: var(--kanva-green);
    --admin-bg: var(--pure-white);
    --admin-surface: rgba(255, 255, 255, 0.95);
    --admin-card: var(--pure-white);
    --admin-border: rgba(183, 185, 180, 0.2);
    --admin-text-primary: var(--dark-fir);
    --admin-text-secondary: var(--chimney);
    --admin-shadow: rgba(23, 53, 26, 0.08);
    --admin-hover: rgba(147, 213, 0, 0.08);
    --admin-focus: rgba(147, 213, 0, 0.12);
    --admin-overlay: rgba(23, 53, 26, 0.5);
    --admin-success: var(--kanva-green);
    --admin-danger: #E74C3C;
    --admin-warning: #F39C12;
    --admin-info: var(--kanva-green);
}

/* Kanva Brand Font Declaration */
@font-face {
    font-family: 'Century Gothic';
    src: url('../assets/fonts/GOTHIC.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Century Gothic';
    src: url('../assets/fonts/GOTHICB.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Clean Modern Floating Admin Button */
.floating-admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    min-width: 100px;
    height: 40px;
    padding: 0 16px;
    background: var(--admin-primary);
    border: 2px solid var(--admin-primary);
    border-radius: 20px;
    color: var(--pure-white);
    font-family: 'Century Gothic', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--admin-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--admin-shadow);
    background: var(--dark-fir);
    border-color: var(--dark-fir);
}

.floating-admin-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px var(--admin-shadow);
}

@keyframes techPulse {
    0%, 100% {
        box-shadow: 0 8px 32px var(--admin-shadow), 0 0 20px rgba(42, 95, 65, 0.4);
        border-color: var(--admin-accent);
    }
    50% {
        box-shadow: 0 8px 32px var(--admin-hover-shadow), 0 0 30px rgba(143, 188, 143, 0.6);
        border-color: var(--admin-gold);
    }
}

/* Hide floating button when modal is open */
.admin-modal-open .floating-admin-btn {
    opacity: 0.3;
    pointer-events: none;
}

/* Apply Kanva Brand Fonts Globally */
.admin-dashboard,
.modal-content,
.admin-header,
.admin-navigation,
.admin-section,
.admin-card,
.form-group,
.btn,
.table,
.modal-header,
.modal-body,
.modal-footer {
    font-family: 'Century Gothic', Helvetica, Arial, sans-serif;
}

/* Clean Modern Admin Dashboard Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--admin-overlay);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: var(--admin-surface);
    margin: 0;
    padding: 0;
    border: 1px solid var(--admin-border);
    width: 95%;
    max-width: 1400px;
    height: auto;
    min-height: 500px;
    max-height: none;
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--admin-shadow);
    overflow: visible;
    display: flex;
    flex-direction: column;
    animation: slideInScale 0.3s ease-out;
    position: relative;
    transition: all 0.3s ease;
}

/* Clean Modern Admin Header */
.admin-header {
    background: var(--admin-bg);
    color: var(--admin-text-primary);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--admin-border);
    position: relative;
}

.admin-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--admin-primary);
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--admin-text-primary);
    letter-spacing: -0.5px;
}

.admin-header h2::before {
    content: '⚙️ ';
    color: var(--admin-primary);
    margin-right: 8px;
}

.close-btn {
    background: transparent;
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
    box-shadow: none;
}

.close-btn:hover {
    background: var(--admin-hover);
    border-color: var(--admin-primary);
    color: var(--admin-text-primary);
    transform: none;
}

/* Clean Modern Navigation */
.admin-navigation {
    background: var(--admin-bg);
    padding: 16px 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--admin-border);
    position: relative;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-btn:hover {
    background: var(--admin-hover);
    border-color: var(--admin-primary);
    color: var(--admin-text-primary);
    transform: none;
}

.nav-btn.active {
    background: var(--admin-primary);
    color: var(--pure-white);
    border-color: var(--admin-primary);
    box-shadow: 0 2px 8px var(--admin-shadow);
    position: relative;
    transform: none;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--admin-primary);
    border-radius: 0;
}

/* Clean Modern Admin Content */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow: visible;
    background: var(--admin-bg);
    position: relative;
    min-height: 400px;
    height: auto;
}

/* Clean Modern Cards */
.card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--admin-shadow);
    transition: all 0.2s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--admin-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px var(--admin-shadow);
    transform: translateY(-2px);
    border-color: var(--admin-primary);
}

.card:hover::before {
    opacity: 1;
}

.card h3, .card h4 {
    margin: 0 0 16px 0;
    color: var(--admin-text-primary);
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
}

.card h3 {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 12px;
    position: relative;
}

.card h3::before {
    content: '▶';
    color: var(--admin-primary);
    margin-right: 8px;
    font-size: 0.9em;
}

.card h4 {
    font-size: 1.1rem;
    color: var(--admin-text-secondary);
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

/* Admin Actions Bar */
.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(42, 95, 65, 0.05);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    flex-wrap: wrap;
}

.admin-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-actions .icon {
    font-size: 0.9em;
}

/* Clean Data Table Container */
.data-table-container {
    overflow: visible;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    background: var(--admin-card);
    box-shadow: 0 2px 8px var(--admin-shadow);
    margin-bottom: 20px;
}

/* Clean Admin Data Table */
.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    background: transparent;
}

.admin-data-table thead {
    background: var(--admin-primary);
    color: var(--pure-white);
}

.admin-data-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--admin-border);
    position: relative;
}

.admin-data-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--admin-border);
}

.admin-data-table tbody tr:hover {
    background: var(--admin-hover);
    transform: none;
}

.admin-data-table tbody td {
    padding: 12px;
    color: var(--admin-text-primary);
    border-bottom: 1px solid var(--admin-border);
    font-weight: 400;
}

/* Clean Editable Cells */
.editable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
    padding: 8px;
}

.editable:hover {
    background: var(--admin-hover);
    color: var(--admin-text-primary);
    transform: none;
}

.editable.editing {
    background: var(--admin-focus);
    padding: 0;
}

.inline-edit-input {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--admin-primary);
    border-radius: 4px;
    background: var(--pure-white);
    color: var(--admin-text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.inline-edit-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px var(--admin-focus);
}

.field-updated {
    background: rgba(40, 167, 69, 0.2) !important;
    animation: fieldUpdate 2s ease;
}

@keyframes fieldUpdate {
    0% { background: rgba(40, 167, 69, 0.4); }
    100% { background: rgba(40, 167, 69, 0.2); }
}

/* Clean Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: var(--admin-primary);
    color: var(--pure-white);
    box-shadow: 0 1px 4px var(--admin-shadow);
}

.status-inactive {
    background: var(--admin-secondary);
    color: var(--pure-white);
    box-shadow: 0 1px 4px var(--admin-shadow);
}

/* Clean Action Buttons */
.product-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.btn-small {
    padding: 6px 8px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--admin-text-secondary);
}

.btn-edit:hover {
    background: var(--admin-warning);
    color: var(--pure-white);
    border-color: var(--admin-warning);
    transform: none;
}

.btn-toggle:hover {
    background: var(--admin-info);
    color: var(--pure-white);
    border-color: var(--admin-info);
    transform: none;
}

.btn-delete:hover {
    background: var(--admin-danger);
    color: var(--pure-white);
    border-color: var(--admin-danger);
    transform: none;
}

/* Clean Loading and Error States */
.loading-row, .error-row {
    text-align: center;
    padding: 32px 20px;
    color: var(--admin-text-secondary);
    font-style: italic;
    background: var(--admin-hover);
}

.error-row {
    color: var(--admin-danger);
    background: rgba(231, 76, 60, 0.1);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Clean Admin Notifications */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--admin-shadow);
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
}

.admin-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: var(--admin-success);
    color: var(--pure-white);
    border-color: var(--admin-success);
}

.notification-error {
    background: var(--admin-danger);
    color: var(--pure-white);
    border-color: var(--admin-danger);
}

.notification-info {
    background: var(--admin-info);
    color: var(--pure-white);
    border-color: var(--admin-info);
}

.notification-icon {
    font-size: 16px;
    margin-right: 4px;
}

/* Clean Save Notification */
.save-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 14px;
    background: var(--admin-success);
    color: var(--pure-white);
    border-radius: 6px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 2px 8px var(--admin-shadow);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integration Cards Styling */
.integrations-section {
    padding: 0 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.integration-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.integration-card {
    background: var(--pure-white);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px var(--admin-shadow);
    overflow: hidden;
    transition: all 0.2s ease;
}

.integration-card:hover {
    box-shadow: 0 4px 12px var(--admin-shadow);
    transform: translateY(-2px);
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--admin-hover);
    border-bottom: 1px solid var(--admin-border);
}

.integration-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-text);
}

.integration-status {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.status-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
}

.status-ok {
    background: var(--admin-success);
    color: var(--pure-white);
}

.status-error {
    background: var(--admin-danger);
    color: var(--pure-white);
}

.status-unknown {
    background: var(--admin-border);
    color: var(--admin-text);
}

.status-testing {
    background: var(--admin-info);
    color: var(--pure-white);
}

.integration-content {
    padding: 16px;
}

.integration-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--admin-hover);
    border-radius: 6px;
    font-size: 13px;
}

.feature-icon {
    margin-right: 8px;
    font-size: 14px;
}

.integration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.integration-tabs {
    display: flex;
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 20px;
}

.integration-tab {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.integration-tab:hover {
    background: var(--admin-hover);
}

.integration-tab.active {
    border-bottom-color: var(--admin-primary);
    color: var(--admin-primary);
}

.integration-tab-content {
    display: none;
}

.integration-tab-content.active {
    display: block;
}

/* Clean Product Edit Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-edit-modal {
    background: var(--admin-card);
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 8px 24px var(--admin-shadow);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInScale 0.3s ease;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--admin-primary);
    color: var(--pure-white);
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Century Gothic', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

/* Clean Product Form */
.product-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

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

.form-group label {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    color: var(--admin-text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 2px solid var(--admin-border);
    border-radius: 4px;
    background: var(--pure-white);
    color: var(--admin-text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px var(--admin-focus);
    transform: none;
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
    margin-top: 16px;
}

/* Clean Status Indicators */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin: 6px 0;
    background: var(--admin-hover);
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    font-size: 14px;
    font-family: system-ui, -apple-system, sans-serif;
}

.status-ok {
    color: var(--admin-success);
    font-weight: 600;
}

.status-warning {
    color: var(--admin-warning);
    font-weight: 600;
}

.status-error {
    color: var(--admin-danger);
    font-weight: 600;
}

/* Clean Stats */
.stat-item {
    padding: 10px 12px;
    margin: 6px 0;
    background: var(--admin-hover);
    border-radius: 6px;
    font-weight: 500;
    color: var(--admin-text-primary);
    border-left: 3px solid var(--admin-primary);
}

/* Clean Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    background: var(--pure-white);
    color: var(--admin-text-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--admin-primary);
    color: var(--pure-white);
    border-color: var(--admin-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--admin-secondary);
    border-color: var(--admin-secondary);
    transform: none;
}

.btn-accent {
    background: var(--admin-warning);
    color: var(--pure-white);
    border-color: var(--admin-warning);
}

.btn-accent:hover:not(:disabled) {
    background: var(--admin-text-secondary);
    border-color: var(--admin-text-secondary);
    transform: none;
}

.btn-secondary {
    background: var(--admin-secondary);
    color: var(--pure-white);
    border-color: var(--admin-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--admin-text-secondary);
    border-color: var(--admin-text-secondary);
    transform: none;
}

.btn-danger {
    background: var(--admin-danger);
    color: var(--pure-white);
    border-color: var(--admin-danger);
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    border-color: #c82333;
    transform: none;
}

.btn-warning {
    background: var(--admin-warning);
    color: var(--pure-white);
    border-color: var(--admin-warning);
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
    border-color: #e0a800;
    transform: none;
}

.btn-info {
    background: var(--admin-info);
    color: var(--pure-white);
    border-color: var(--admin-info);
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    border-color: #138496;
    transform: none;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Clean Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-border);
}

.section-header h3 {
    margin: 0;
    color: var(--admin-text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Clean Product Management */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.product-card {
    border-left: 3px solid var(--admin-primary);
}

.product-details {
    margin: 12px 0;
}

.product-details > div {
    margin: 6px 0;
    padding: 8px 10px;
    background: var(--admin-hover);
    border-radius: 4px;
    font-size: 14px;
}

.product-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 6px;
}

/* Clean Pricing Tiers */
.tiers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.tier-card {
    border-left: 3px solid var(--admin-warning);
}

.tier-details {
    margin: 12px 0;
}

.tier-details > div {
    margin: 6px 0;
    padding: 8px 10px;
    background: var(--admin-hover);
    border-radius: 4px;
    font-size: 14px;
    color: var(--admin-text-primary);
}

.tier-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 6px;
}

/* Clean Shipping Zones */
.shipping-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.zone-card {
    border-left: 3px solid var(--admin-info);
}

.zone-details {
    margin: 12px 0;
}

.zone-details > div {
    margin: 6px 0;
    padding: 8px 10px;
    background: var(--admin-hover);
    border-radius: 4px;
    font-size: 14px;
    color: var(--admin-text-primary);
}

.zone-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 6px;
}

/* Clean Integrations */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.integration-card {
    border-left: 3px solid var(--admin-primary);
    position: relative;
}

.integration-status {
    margin: 12px 0;
    padding: 10px;
    background: var(--admin-hover);
    border-radius: 4px;
    font-weight: 500;
}

.integration-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Clean Settings */
.settings-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.setting-card {
    border-left: 3px solid var(--admin-warning);
}

.setting-content {
    margin-top: 12px;
}

.setting-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--admin-text-primary);
}

.setting-content textarea,
.setting-content input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--admin-border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: var(--pure-white);
}

.setting-content textarea:focus,
.setting-content input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px var(--admin-focus);
}

/* Clean Form Validation */
.field-valid {
    border-color: var(--admin-success) !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

.field-invalid {
    border-color: var(--admin-danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

.field-error {
    color: var(--admin-danger);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Clean Form Messages */
.form-message {
    padding: 10px 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.form-message-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--admin-success);
    border: 1px solid var(--admin-success);
}

.form-message-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--admin-danger);
    border: 1px solid var(--admin-danger);
}

.form-message-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--admin-info);
    border: 1px solid var(--admin-info);
}

/* Clean Dynamic Forms */
.dynamic-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-in-out;
}

.dynamic-form-modal {
    background: var(--pure-white);
    padding: 24px;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideInScale 0.3s ease-in-out;
}

@keyframes slideInScale {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-border);
}

.form-header h3 {
    margin: 0;
    color: var(--admin-text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--admin-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--admin-border);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--pure-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px var(--admin-focus);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 95%;
        margin: 1% auto;
    }
    
    .admin-header {
        padding: 15px 20px;
    }
    
    .admin-header h2 {
        font-size: 1.4rem;
    }
    
    .admin-navigation {
        padding: 10px 20px;
        gap: 6px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .overview-grid,
    .products-grid,
    .tiers-list,
    .shipping-zones,
    .integrations-grid,
    .settings-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Password Toggle Styles */
.password-input-container {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--admin-text-secondary);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: var(--admin-primary);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--admin-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Picture Upload Styles */
.picture-upload-container {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 8px;
    background: var(--admin-surface);
    transition: all 0.3s ease;
}

.picture-upload-container:hover {
    border-color: var(--admin-primary);
    background: var(--admin-hover);
}

.picture-upload-container.drag-over {
    border-color: var(--admin-primary);
    background: var(--admin-focus);
    transform: scale(1.02);
}

.picture-preview {
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--admin-shadow);
    border: 2px solid var(--admin-border);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--admin-shadow);
}

.upload-placeholder {
    color: var(--admin-text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-radius: 6px;
    background: var(--admin-hover);
    margin: 10px 0;
}

.upload-placeholder:before {
    content: "📷";
    font-size: 24px;
}

.picture-upload-container .btn {
    margin: 0 5px;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
}

/* Product thumbnail styles */
.product-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--admin-border);
}

/* Inline Editing Styles */
.inline-edit-input {
    width: 100%;
    padding: 4px 8px;
    border: 2px solid var(--admin-primary);
    border-radius: 4px;
    background: var(--pure-white);
    color: var(--admin-text-primary);
    font-size: inherit;
    font-family: inherit;
    outline: none;
    box-shadow: 0 0 0 2px rgba(147, 213, 0, 0.2);
}

.inline-edit-input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(147, 213, 0, 0.3);
}

/* Edit Success/Error States */
.edit-success {
    background-color: rgba(147, 213, 0, 0.1) !important;
    border: 1px solid var(--admin-success) !important;
    animation: editSuccess 2s ease-out;
}

.edit-error {
    background-color: rgba(231, 76, 60, 0.1) !important;
    border: 1px solid var(--admin-danger) !important;
    animation: editError 2s ease-out;
}

@keyframes editSuccess {
    0% {
        background-color: rgba(147, 213, 0, 0.3);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(147, 213, 0, 0.1);
        transform: scale(1);
    }
}

@keyframes editError {
    0% {
        background-color: rgba(231, 76, 60, 0.3);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(231, 76, 60, 0.1);
        transform: scale(1);
    }
}

/* Editable Cell Styles */
.editable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.editable:hover {
    background-color: var(--admin-hover);
    border-radius: 4px;
}

.editable:hover::after {
    content: '✏️';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
}

/* Color Indicator */
.color-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--admin-border);
    vertical-align: middle;
}

/* No Data Row */
.no-data-row {
    text-align: center;
    color: var(--admin-text-secondary);
    font-style: italic;
    padding: 20px;
}

/* Error Row */
.error-row {
    text-align: center;
    color: var(--admin-danger);
    padding: 20px;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-icon {
    font-size: 18px;
}

/* Loading Row */
.loading-row {
    text-align: center;
    color: var(--admin-text-secondary);
    padding: 20px;
    font-style: italic;
}

.loading-row::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.product-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Image Container and Actions */
.image-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

.image-container:hover .image-actions {
    opacity: 1;
}

.image-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 2px;
}

.btn-edit-image,
.btn-delete-image {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-edit-image:hover {
    background: var(--admin-primary);
    color: white;
}

.btn-delete-image:hover {
    background: #dc3545;
    color: white;
}

/* Image Upload Modal */
.image-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.image-upload-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.image-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--admin-border);
}

.image-upload-header h3 {
    color: var(--admin-primary);
    margin: 0;
}

.image-drop-zone {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-drop-zone:hover,
.image-drop-zone.drag-over {
    border-color: var(--admin-primary);
    background: rgba(255, 165, 0, 0.05);
}

.image-drop-zone.drag-over {
    border-style: solid;
    background: rgba(255, 165, 0, 0.1);
}

.drop-zone-content {
    color: var(--admin-text-secondary);
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--admin-primary);
}

.image-preview {
    margin-top: 20px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--admin-border);
}

#image-file-input {
    display: none;
}

/* Small Image Upload Components for Product Form */
.image-upload-section {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.image-drop-zone-small {
    border: 2px dashed var(--admin-border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.image-drop-zone-small:hover,
.image-drop-zone-small.drag-over {
    border-color: var(--admin-primary);
    background: rgba(255, 165, 0, 0.05);
}

.image-drop-zone-small .drop-zone-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--admin-primary);
}

.image-drop-zone-small p {
    margin: 5px 0;
    color: var(--admin-text-secondary);
}

.image-drop-zone-small small {
    color: var(--admin-text-muted);
}

.btn-link {
    background: none;
    border: none;
    color: var(--admin-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.btn-link:hover {
    color: var(--admin-primary-dark);
}

.image-preview-small {
    text-align: center;
    margin-top: 10px;
}

.image-preview-small img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.current-image {
    text-align: center;
    margin-bottom: 15px;
}

.current-image img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Form styling enhancements */
.admin-form {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--admin-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--admin-border);
}

/* Custom Confirmation Dialog */
.confirm-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(4px);
}

.confirm-dialog-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: confirmDialogSlideIn 0.3s ease-out;
}

@keyframes confirmDialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-dialog-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--admin-border);
    background: #fff8f0;
    border-radius: 12px 12px 0 0;
}

.confirm-dialog-header h3 {
    margin: 0;
    color: var(--admin-warning);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-dialog-body {
    padding: 25px;
    text-align: center;
}

.confirm-dialog-body p {
    margin: 0;
    color: var(--admin-text-primary);
    font-size: 15px;
    line-height: 1.5;
}

.confirm-dialog-actions {
    padding: 20px 25px 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-dialog-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.confirm-dialog-actions .btn-secondary {
    background: #f8f9fa;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.confirm-dialog-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.confirm-dialog-actions .btn-danger {
    background: var(--admin-danger);
    border: 1px solid var(--admin-danger);
    color: white;
}

.confirm-dialog-actions .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.confirm-dialog-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}

/* Modern Modal Styles */
.modern-modal {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: modernModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modernModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 24px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-title-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modal-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.modal-title-section h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.modern-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-modal .modal-form {
    padding: 30px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

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

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--admin-text-primary);
}

.label-text {
    font-size: 14px;
}

.required-indicator {
    color: var(--admin-danger);
    font-size: 14px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.form-help {
    margin-top: 4px;
    font-size: 12px;
    color: var(--admin-text-secondary);
    line-height: 1.4;
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix .form-input {
    padding-right: 40px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--admin-text-secondary);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-color-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-color-input:hover {
    border-color: var(--admin-primary);
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    background: #ff6b35;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.form-actions .btn svg {
    width: 16px;
    height: 16px;
}

.form-actions .btn-secondary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: var(--admin-text-secondary);
}

.form-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.form-actions .btn-primary {
    background: var(--admin-primary);
    border: 2px solid var(--admin-primary);
    color: white;
}

.form-actions .btn-primary:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-modal {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-title-section {
        gap: 12px;
    }
    
    .modal-icon {
        padding: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

.product-image {
    text-align: center;
    padding: 8px;
}

/* Enhanced image upload container */
.image-upload-container {
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--admin-hover) 0%, rgba(255, 107, 53, 0.02) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-upload-container:hover {
    border-color: var(--admin-primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-input-hidden {
    display: none !important;
}

.picture-preview {
    margin-bottom: 20px;
    position: relative;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid var(--admin-border);
}

.image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.upload-placeholder {
    color: var(--admin-text-muted);
    font-size: 14px;
    margin-top: 12px;
    font-weight: 500;
}

.image-upload-btn {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.image-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--admin-secondary) 0%, var(--admin-primary) 100%);
}

.image-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn.btn-outline-secondary {
    background: transparent;
    color: var(--admin-danger);
    border: 1px solid var(--admin-danger);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn.btn-outline-secondary:hover {
    background: var(--admin-danger);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Image preview styles are defined above */

/* Product Modal Enhancements */
.product-edit-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-edit-modal .modal-body {
    padding: 24px;
}

.product-edit-modal .form-row {
    margin-bottom: 20px;
}

.product-edit-modal .form-group {
    margin-bottom: 16px;
}

.product-edit-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
}

/* Modal Overlay Improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--admin-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-overlay .product-edit-modal {
    background: var(--admin-card);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .picture-upload-container {
        padding: 15px;
    }
    
    .preview-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .product-edit-modal {
        width: 95%;
        margin: 10px;
    }
    
    .product-edit-modal .form-actions {
        flex-direction: column;
    }
    
    .password-toggle-btn {
        right: 10px;
    }
}

/* ==================== PRICING TOGGLE SWITCH ==================== */

/* Pricing Toggle Container */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.pricing-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--admin-text-secondary);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 32px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 68px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.toggle-text {
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 1;
    padding: 0 8px;
    transition: all 0.3s ease;
}

.toggle-text-left {
    margin-left: 4px;
}

.toggle-text-right {
    margin-right: 4px;
    opacity: 0.6;
}

/* Checked State */
.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(68px);
}

.toggle-input:checked + .toggle-slider .toggle-text-left {
    opacity: 0.6;
}

.toggle-input:checked + .toggle-slider .toggle-text-right {
    opacity: 1;
}

/* Hover Effects */
.toggle-slider:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.toggle-input:checked + .toggle-slider:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Focus State */
.toggle-input:focus + .toggle-slider {
    outline: 2px solid var(--admin-focus);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .toggle-switch {
        width: 120px;
        height: 28px;
    }
    
    .toggle-slider:before {
        height: 24px;
        width: 58px;
    }
    
    .toggle-input:checked + .toggle-slider:before {
        transform: translateX(58px);
    }
    
    .toggle-text {
        font-size: 10px;
        padding: 0 6px;
    }
}

/* Card Header Flex Layout */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #404040;
    }
}

/* Enhanced Shipping Table Styles */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.shipping-table th {
    background: linear-gradient(135deg, var(--admin-primary), rgba(147, 213, 0, 0.8));
    color: var(--pure-white);
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.shipping-table th.ground-header {
    background: linear-gradient(135deg, var(--admin-warning), rgba(243, 156, 18, 0.8));
    font-size: 0.8rem;
    padding: 8px 6px;
}

.shipping-table td {
    padding: 10px 8px;
    border: 1px solid var(--admin-border);
    text-align: center;
    vertical-align: middle;
}

.shipping-table .ground-rate {
    background: rgba(243, 156, 18, 0.05);
    font-weight: 600;
    color: var(--admin-warning);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-table .ground-rate:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: scale(1.02);
}

.shipping-table .ground-rate.editing {
    background: rgba(243, 156, 18, 0.15);
    transform: scale(1.05);
}

.shipping-table .zone-ltl {
    background: rgba(147, 213, 0, 0.05);
    font-weight: 600;
    color: var(--admin-primary);
}

.shipping-table .zone-states {
    font-size: 0.8rem;
    color: var(--admin-text-secondary);
    max-width: 120px;
    word-wrap: break-word;
}

.shipping-table .color-indicator {
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--pure-white);
}

.shipping-table .field-updated {
    background: rgba(147, 213, 0, 0.2) !important;
    animation: fieldUpdatePulse 0.6s ease-out;
}

@keyframes fieldUpdatePulse {
    0% {
        transform: scale(1);
        background: rgba(147, 213, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        background: rgba(147, 213, 0, 0.4);
    }
    100% {
        transform: scale(1);
        background: rgba(147, 213, 0, 0.2);
    }
}

/* Responsive shipping table */
@media (max-width: 1200px) {
    .shipping-table {
        font-size: 0.8rem;
    }
    
    .shipping-table th,
    .shipping-table td {
        padding: 8px 6px;
    }
    
    .shipping-table th.ground-header {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
}

@media (max-width: 768px) {
    .shipping-table {
        font-size: 0.75rem;
    }
    
    .shipping-table th,
    .shipping-table td {
        padding: 6px 4px;
    }
    
    .shipping-table .zone-states {
        max-width: 80px;
        font-size: 0.7rem;
    }
}

/* Save notification styles */
.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--admin-success);
    color: var(--pure-white);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(147, 213, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
