/* ========================================
   SHUKRAN GOLD - STYLESHEET (UPDATED)
   ======================================== */

/* GLOBAL STYLES & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --primary-dark: #b8962e;
    --primary-light: #f1d16a;
    --secondary-color: #6b7280;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --bg-color: #e5e7eb;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #d1d5db;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 6px 10px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.18);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;
    --transition-speed: 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-color);
    color: var(--text-secondary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-icon {
    font-size: 28px;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 22px;
    min-width: 22px;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

/* MAIN CONTAINER & TOPBAR */
.main-container {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-speed) ease;
}

.sidebar.collapsed ~ .main-container {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-color);
}

.breadcrumb {
    flex: 1;
    margin-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 150, 46, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.topbar-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* CONTENT & SECTIONS */
.content {
    padding: 30px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 24px;
    color: var(--text-primary);
}

/* SALE LAYOUT */
.sale-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

.sale-main {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

/* INPUTS & BUTTONS */
.search-bar {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-input-small {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.search-input-small:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input:disabled {
    background: var(--bg-color);
    cursor: not-allowed;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.btn-full {
    width: 100%;
}

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

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

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

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* TABLES */
.sale-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sale-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.sale-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.sale-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sale-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.sale-table tbody tr {
    transition: background 0.2s ease;
}

.sale-table tbody tr:hover {
    background: #f9fafb;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.table-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr {
    transition: background 0.2s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* QUANTITY CONTROLS */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.qty-input {
    width: 60px;
    padding: 6px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* PAYMENT PANEL */
.payment-panel {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: calc(var(--topbar-height) + 30px);
}

.payment-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.payment-title {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item.total {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.summary-item.total .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-item.discount .amount {
    color: var(--danger-color);
    font-weight: 600;
}

.amount {
    font-weight: 600;
    color: var(--text-primary);
}

.payment-type {
    margin-bottom: 20px;
}

.payment-type label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.payment-options {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.radio-option input[type="radio"] {
    margin: 0;
}

.payment-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.btn-complete {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ========================================
   MODALS — CENTERED, PROFESSIONAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
}

.modal-header h3 {
    font-size: 19px;
    color: var(--text-primary);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    border-radius: 0 0 20px 20px;
}

.modal-footer .btn {
    min-width: 120px;
}

/* ALERT & CONFIRM MODALS (centered) */
.alert-modal .modal-content,
.confirm-modal .modal-content {
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
}

.alert-modal .modal-content,
.confirm-modal .modal-content {
    background: white;
}

.alert-modal .modal-body,
.confirm-modal .modal-body {
    text-align: center;
    padding: 40px 28px 24px;
}

.confirm-icon,
.alert-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.confirm-message,
.alert-message {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

.alert-modal .modal-footer,
.confirm-modal .modal-footer {
    justify-content: center;
    padding: 20px 28px 28px;
    border-top: none;
    background: white;
}

/* ========================================
   EDIT PRICE MODAL (chiroyli dizayn)
   ======================================== */
.edit-price-modal .modal-content {
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
}

.edit-price-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    padding: 28px;
}

.edit-price-modal .modal-header h3 {
    color: white;
    font-size: 20px;
}

.edit-price-modal .modal-close {
    color: rgba(255,255,255,0.8);
}

.edit-price-modal .modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.edit-price-modal .modal-body {
    padding: 32px 28px 24px;
}

.edit-price-product-info {
    text-align: center;
    margin-bottom: 28px;
}

.edit-price-product-info .product-icon-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(184,150,46,0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 32px;
    border: 2px solid rgba(212,175,55,0.25);
}

.edit-price-product-info .product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.edit-price-product-info .product-proba {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.price-row .price-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-row .price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.edit-price-input-wrap {
    margin-top: 24px;
}

.edit-price-input-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.edit-price-input-wrap input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: white;
}

.edit-price-input-wrap input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.edit-price-modal .modal-footer {
    padding: 20px 28px 28px;
    border-top: none;
    background: white;
    justify-content: center;
    gap: 12px;
}

.edit-price-modal .modal-footer .btn {
    min-width: 140px;
    padding: 13px 24px;
    font-size: 15px;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    min-width: 280px;
    max-width: 380px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    border-left: 4px solid var(--success-color);
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
}

.toast-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--success-color);
    border-radius: 0 0 0 0;
    animation: toastProgress 2s linear forwards;
}

.toast.error .toast-progress {
    background: var(--danger-color);
}

.toast.warning .toast-progress {
    background: #f59e0b;
}

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

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

.toast.hide {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

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

/* SETTINGS - USER PROFILE */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
}

.user-profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.user-profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px;
    text-align: center;
    position: relative;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-role-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-profile-body {
    padding: 40px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.user-info-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.user-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.user-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info-content {
    flex: 1;
    min-width: 0;
}

.user-info-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.user-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.btn-logout {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.logout-icon {
    font-size: 24px;
}

.logout-text {
    font-size: 16px;
}

/* CONTEXT MENU */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 3000;
    min-width: 180px;
    display: none;
}

.context-menu.active {
    display: block;
}

.context-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.context-menu-item:hover {
    background: var(--bg-color);
}

.context-menu-item.edit:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.context-menu-item.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.context-menu-item span {
    font-size: 18px;
}

.data-table tbody tr.context-menu-active {
    background: rgba(212, 175, 55, 0.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sale-layout {
        grid-template-columns: 1fr;
    }
    
    .payment-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-container {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 16px;
    }
    
    .content {
        padding: 16px;
    }
    
    .sale-main {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .topbar-logo {
        font-size: 18px;
    }
    
    .topbar-logo-container {
        padding: 6px 12px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        top: auto;
        bottom: 24px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .search-input-small {
        width: 100%;
        max-width: 100%;
    }
}
