
/* HIGH-END MODERN ADMIN CSS */

/* Base & Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILS --- */
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }

/* --- SIDEBAR --- */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    color: #94a3b8; /* Slate 400 */
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}
.sidebar-item:hover { 
    color: #f8fafc; 
    background-color: rgba(255,255,255,0.03); 
    border-color: rgba(255,255,255,0.05);
}
.sidebar-item .icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    transition: all 0.2s;
}
.sidebar-active { 
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)) !important; 
    color: white !important; 
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sidebar-active .icon-wrap {
    background: #db2777; /* Brand 600 */
    color: white;
    box-shadow: 0 0 10px rgba(219, 39, 119, 0.4);
}
.active-indicator {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: #db2777; border-top-left-radius: 4px; border-bottom-left-radius: 4px;
    opacity: 0; transition: opacity 0.2s;
}
.sidebar-active .active-indicator { opacity: 1; }


/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, #be123c 0%, #be123c 100%);
    color: white; 
    font-weight: 600; 
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem; 
    border-radius: 0.75rem; 
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #db2777 0%, #be123c 100%);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background-color: white;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-secondary:hover { 
    background-color: #f8fafc; 
    border-color: #cbd5e1; 
    color: #1e293b; 
    transform: translateY(-1px);
}

/* --- INPUTS & TOOLBAR --- */
.modern-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.modern-input:focus { 
    border-color: #db2777; 
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1); 
}

.toolbar-select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.1em;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.toolbar-select:hover { border-color: #cbd5e1; color: #1e293b; }
.toolbar-select:focus { border-color: #db2777; box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1); }

.modern-select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.6rem 2.2rem 0.6rem 0.85rem;
    font-size: 0.875rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    outline: none;
    transition: all 0.2s;
}
.modern-select:focus { border-color: #db2777; box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1); }

/* --- DATA TABLE --- */
table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}
table tbody tr:hover {
    background-color: #f8fafc; /* More subtle hover for cleaner look */
    z-index: 10;
    position: relative;
}
table tbody td {
    padding: 16px 18px; /* Slightly more height */
    vertical-align: middle;
}
table tbody tr:last-child td { border-bottom: none; }

/* Table Text Styles */
.cell-title { font-weight: 700; color: #1e293b; font-size: 0.95rem; line-height: 1.3; letter-spacing: -0.01em; }
.cell-subtitle { font-weight: 500; color: #64748b; font-size: 0.8rem; margin-top: 2px; }

/* BADGES (Tags) */
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.badge-year { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; font-family: 'JetBrains Mono', monospace; }
.badge-list { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; margin-right: 4px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(190, 18, 60, 0.05); }
.badge-type { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }

/* PRICES */
.price-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.price-row { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 600; color: #333; display:flex; align-items:center; }
.price-label { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; margin-right: 6px; font-weight: 700; font-family: sans-serif; letter-spacing:0.05em; background:#f1f5f9; padding:1px 4px; border-radius:4px; }
.price-highlight { color: #be123c; font-weight: 700; }
.price-takeaway { color: #059669; }

/* ACTIONS */
.action-icon-btn {
    padding: 8px;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.2s;
    background: transparent;
}
.action-icon-btn:hover { background: #e2e8f0; color: #333; transform: scale(1.1); }
.action-icon-btn.edit:hover { background: #eff6ff; color: #2563eb; }
.action-icon-btn.delete:hover { background: #fef2f2; color: #ef4444; }

/* --- SETTINGS CARDS --- */
.setting-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}
.setting-card:hover { border-color: #cbd5e1; transform:translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }

.setting-header { padding: 2rem; display: flex; gap: 1.25rem; }
.setting-header h3 { font-weight: 700; color: #1e293b; font-size: 1.1rem; }
.setting-header p { color: #64748b; font-size: 0.9rem; margin-top: 4px; }
.icon-box {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* --- FORM ELEMENTS (Modal) --- */
.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}
.price-input-group {
    position: relative;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.2s;
    display: flex; flex-direction: column;
}
.price-input-group:focus-within { border-color: #be123c; box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1); transform:translateY(-1px); }
.price-input-group .currency { position: absolute; left: 1rem; top: 1.1rem; color: #94a3b8; font-weight: 600; font-size:1.1rem; }
.price-input-group .label-btm {
    display: block; font-size: 0.65rem; text-transform: uppercase; font-weight: 800; color: #cbd5e1; margin-top: 4px; text-align: right;
}
.price-input-group.highlight { background: #fff1f2; border-color: #fecdd3; }
.price-input-group.highlight .label-btm { color: #be123c; }
.badge-mini {
    position: absolute; top: -8px; right: 10px; background: #be123c; color: white; font-size: 9px; text-transform: uppercase; font-weight: 700; padding: 2px 6px; border-radius: 4px; box-shadow: 0 2px 4px rgba(190, 18, 60, 0.2);
}

/* DUPLICATE Toggle */
.toggle-bg { transition: background-color 0.2s; }
input:checked + .toggle-bg { background-color: #be123c; }
input:checked ~ .dot { transform: translateX(100%); }

/* DUPLICATE HIGHLIGHTS */
.row-dup-0 { border-left: 4px solid #ef4444; background: #fef2f2 !important; }
.row-dup-1 { border-left: 4px solid #f59e0b; background: #fffbeb !important; }
.row-dup-2 { border-left: 4px solid #3b82f6; background: #eff6ff !important; }

/* Custom Checkbox */
.cat-check-input {
    appearance: none;
    width: 1.25rem; height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.cat-check-input:checked {
    background-color: #be123c;
    border-color: #be123c;
}
.cat-check-input:checked::after {
    content: '✓'; color: white; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.8rem; font-weight: bold;
}
