:root {
    --primary: #0D7377;
    --primary-dark: #095557;
    --primary-light: #e0f2f3;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --text: #1c1c1c;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --new-color: #ef4444;
    --active-color: #f59e0b;
    --done-color: #10b981;
    --sidebar-width: 240px;
    --header-height: 60px;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.oc-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0 24px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.oc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.oc-logo {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.oc-logo i { font-size: 1.4rem; }
.oc-logo strong { color: #d4a853; }

.oc-header-center {
    text-align: center;
}

.oc-header-center h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

.oc-header-center h1 i {
    margin-left: 6px;
    opacity: 0.8;
}

.oc-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.oc-time {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: monospace;
    direction: ltr;
}

.oc-header-actions {
    display: flex;
    gap: 6px;
}

.oc-btn-icon {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-btn-icon:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.oc-btn-icon:active {
    transform: scale(0.95);
}

.oc-btn-icon.spinning i {
    animation: spin 1s linear infinite;
}

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

/* ========== LAYOUT ========== */
.oc-layout {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.oc-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 20px 16px;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oc-sidebar::-webkit-scrollbar { width: 4px; }
.oc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.oc-sidebar-section {
    margin-bottom: 20px;
}

.oc-sidebar-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-sidebar-section h3 i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Stats */
.oc-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oc-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg);
    transition: all 0.2s;
    cursor: default;
}

.oc-stat:hover {
    transform: translateX(-2px);
}

.oc-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.oc-stat-new .oc-stat-icon { background: rgba(239,68,68,0.12); color: var(--danger); }
.oc-stat-active .oc-stat-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.oc-stat-done .oc-stat-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.oc-stat-total .oc-stat-icon { background: rgba(13,115,119,0.12); color: var(--primary); }

.oc-stat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.oc-stat-number {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.2;
}

.oc-stat-new .oc-stat-number { color: var(--danger); }
.oc-stat-active .oc-stat-number { color: var(--warning); }
.oc-stat-done .oc-stat-number { color: var(--success); }
.oc-stat-total .oc-stat-number { color: var(--primary); }

.oc-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Settings in sidebar */
.oc-setting-group {
    margin-bottom: 10px;
}

.oc-setting-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.oc-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    direction: rtl;
    transition: border-color 0.2s;
}

.oc-select:focus {
    outline: none;
    border-color: var(--primary);
}

.oc-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text) !important;
    font-size: 0.85rem !important;
}

.oc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Filter chips */
.oc-filter-chips {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oc-chip {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s;
    text-align: right;
}

.oc-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.oc-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Sidebar footer */
.oc-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.oc-btn-primary {
    background: var(--primary);
    color: #fff;
}

.oc-btn-primary:hover {
    background: var(--primary-dark);
}

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

.oc-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.oc-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ========== MAIN ========== */
.oc-main {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 20px;
    max-width: calc(100vw - var(--sidebar-width));
}

/* Toolbar */
.oc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.oc-toolbar-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 3px;
    border-radius: 8px;
}

.oc-tab {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-tab:hover {
    color: var(--text);
}

.oc-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.oc-toolbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.oc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

.oc-dot.oc-dot-error {
    background: var(--danger);
}

/* Content states */
.oc-content {
    position: relative;
    min-height: 400px;
}

.oc-loading,
.oc-empty,
.oc-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.oc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.oc-loading p,
.oc-empty p,
.oc-error p {
    color: var(--text-light);
    margin-top: 8px;
}

.oc-empty i,
.oc-error i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.oc-empty i { color: var(--border); }
.oc-error i { color: var(--danger); }

.oc-error .oc-btn {
    margin-top: 16px;
}

/* ========== KANBAN ========== */
.oc-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: calc(100vh - var(--header-height) - 120px);
}

.oc-column {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oc-column-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.oc-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.oc-column-dot.new { background: var(--new-color); }
.oc-column-dot.active { background: var(--active-color); }
.oc-column-dot.done { background: var(--done-color); }

.oc-column-title h3 {
    font-size: 0.95rem;
    font-weight: 800;
}

.oc-column-count {
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-right: auto;
}

.oc-column-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-top: 2px;
    margin-right: 18px;
}

.oc-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oc-column-body::-webkit-scrollbar { width: 4px; }
.oc-column-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.oc-column-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    color: var(--text-lighter);
    text-align: center;
    flex: 1;
}

.oc-column-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.4;
}

.oc-column-empty p {
    font-size: 0.85rem;
}

/* ========== ORDER CARDS ========== */
.oc-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    cursor: default;
}

.oc-card:hover {
    box-shadow: var(--shadow-hover);
}

.oc-card-new {
    border-color: var(--new-color);
    animation: pulse-new 2s infinite;
}

.oc-card-active {
    border-color: var(--active-color);
    animation: pulse-active 2s infinite;
}

.oc-card-done {
    border-color: var(--done-color);
    opacity: 0.75;
}

.oc-card-done:hover {
    opacity: 1;
}

@keyframes pulse-new {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.1); }
    50% { box-shadow: 0 0 0 4px rgba(239,68,68,0.15); }
}

@keyframes pulse-active {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.1); }
    50% { box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
}

.oc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.oc-card-type {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.oc-card-type i {
    font-size: 0.75rem;
}

.oc-card-time {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.oc-card-id {
    font-size: 0.65rem;
    color: var(--text-lighter);
    font-family: monospace;
}

.oc-card-customer {
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-card-customer i {
    font-size: 0.7rem;
}

.oc-card-items {
    padding: 8px 12px;
}

.oc-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

.oc-card-item:last-child { border-bottom: none; }

.oc-card-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.oc-card-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-card-item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-size: 0.8rem;
}

.oc-card-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.oc-card-item-name {
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-card-item-qty {
    font-size: 0.7rem;
    color: var(--text-light);
}

.oc-card-item-total {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    white-space: nowrap;
}

.oc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    gap: 8px;
}

.oc-card-total {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.oc-card-total span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.oc-card-total strong {
    font-size: 1rem;
    color: var(--primary);
}

.oc-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.oc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.oc-card-btn:hover {
    transform: scale(1.03);
}

.oc-card-btn:active {
    transform: scale(0.97);
}

.oc-card-btn-send {
    background: var(--primary);
    color: #fff;
}

.oc-card-btn-send:hover {
    background: var(--primary-dark);
}

.oc-card-btn-complete {
    background: var(--success);
    color: #fff;
}

.oc-card-btn-complete:hover {
    background: #059669;
}

.oc-card-btn-details {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.oc-card-btn-details:hover {
    border-color: var(--text);
    color: var(--text);
}

.oc-card-badge-done {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ========== LIST VIEW ========== */
.oc-list-view {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.oc-table th {
    padding: 12px 14px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.oc-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.oc-table tr:last-child td {
    border-bottom: none;
}

.oc-table tr:hover td {
    background: var(--primary-light);
}

.oc-table-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.oc-table-status-new {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.oc-table-status-active {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.oc-table-status-done {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.oc-table-items-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-light);
}

.oc-table-actions {
    display: flex;
    gap: 4px;
}

.oc-table-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: inherit;
    transition: all 0.15s;
}

.oc-table-btn-view {
    background: var(--bg);
    color: var(--text);
}

.oc-table-btn-view:hover {
    background: var(--border);
}

.oc-table-btn-send {
    background: var(--primary);
    color: #fff;
}

.oc-table-btn-send:hover {
    background: var(--primary-dark);
}

.oc-table-btn-complete {
    background: var(--success);
    color: #fff;
}

.oc-table-btn-complete:hover {
    background: #059669;
}

/* ========== MODAL ========== */
.oc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.oc-modal-overlay.open {
    display: flex;
}

.oc-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
}

.oc-modal-sm {
    max-width: 420px;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.oc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.oc-modal-header h3 {
    font-size: 1rem;
}

.oc-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.oc-modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

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

.oc-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

/* Modal detail items */
.oc-modal-order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.oc-modal-info-item {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
}

.oc-modal-info-item.full {
    grid-column: 1 / -1;
}

.oc-modal-info-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.oc-modal-info-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.oc-modal-items {
    margin-top: 12px;
}

.oc-modal-items h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Modal form */
.oc-form-group {
    margin-bottom: 14px;
}

.oc-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.oc-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

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

/* ========== TOAST NOTIFICATIONS ========== */
#ocToastContainer {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}

.oc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.oc-toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 3px 3px 0;
}

.oc-toast-in {
    transform: translateX(0);
    opacity: 1;
}

.oc-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.oc-toast-content {
    flex: 1;
    min-width: 0;
}

.oc-toast-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}

.oc-toast-text {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.oc-toast-close {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.15s;
    opacity: 0;
}

.oc-toast:hover .oc-toast-close {
    opacity: 1;
}

.oc-toast-close:hover {
    background: var(--bg);
    color: var(--text);
}

/* Toast types */
.oc-toast-success::before { background: var(--success); }
.oc-toast-success .oc-toast-icon { background: rgba(16,185,129,0.12); color: var(--success); }

.oc-toast-error::before { background: var(--danger); }
.oc-toast-error .oc-toast-icon { background: rgba(239,68,68,0.12); color: var(--danger); }

.oc-toast-info::before { background: var(--primary); }
.oc-toast-info .oc-toast-icon { background: rgba(13,115,119,0.12); color: var(--primary); }

.oc-toast-warning::before { background: var(--warning); }
.oc-toast-warning .oc-toast-icon { background: rgba(245,158,11,0.12); color: var(--warning); }

/* ========== NOTIFICATION BELL ========== */
.oc-notif-btn {
    position: relative;
}

.oc-notif-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-dark);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ========== SIDEBAR TOGGLE (Mobile) ========== */
.oc-sidebar-toggle {
    display: none;
}

.oc-sidebar-backdrop {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .oc-kanban {
        grid-template-columns: 1fr;
        height: auto;
    }
    .oc-column {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .oc-sidebar-toggle {
        display: flex;
    }

    .oc-sidebar {
        display: flex;
        position: fixed;
        top: var(--header-height);
        right: -280px;
        bottom: 0;
        width: 260px;
        z-index: 150;
        transition: right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: none;
        border-left: none;
    }

    .oc-sidebar.open {
        right: 0;
        box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    }

    .oc-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 140;
        backdrop-filter: blur(2px);
    }

    .oc-sidebar-backdrop.open {
        display: block;
    }

    .oc-main {
        margin-right: 0;
        padding: 12px;
        max-width: 100vw;
    }
    .oc-header-center h1 {
        font-size: 0.85rem;
    }
    .oc-header-center h1 i {
        display: none;
    }
    .oc-time {
        font-size: 0.9rem;
    }
    .oc-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    .oc-table {
        font-size: 0.75rem;
    }
    .oc-table th,
    .oc-table td {
        padding: 8px 6px;
    }
    .oc-table-items-cell {
        max-width: 80px;
    }
    .oc-modal {
        max-width: 100%;
        margin: 10px;
    }
    .oc-modal-order-info {
        grid-template-columns: 1fr;
    }
}
