@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #3f37c9;
    /* Deeper, more rich blue */
    --primary-light: #4895ef;
    --primary-hover: #3a0ca3;

    /* Functional Colors */
    --success-color: #10b981;
    /* Emerald Green */
    --danger-color: #ef4444;
    /* Red */
    --warning-color: #f59e0b;
    /* Amber */

    /* Backgrounds */
    --bg-color: #f3f4f6;
    /* Cool Gray 100 */
    --card-bg: #ffffff;

    /* Text */
    --text-color: #111827;
    /* Gray 900 */
    --text-muted: #6b7280;
    /* Gray 500 */

    /* Borders & Lines */
    --border-color: #e5e7eb;
    /* Gray 200 */

    /* Layout */
    --sidebar-width: 280px;
    /* Slightly wider sidebar */

    /* Effects */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    direction: rtl;
    /* Ensure RTL for Arabic */
    line-height: 1.5;
}

/* --- Auth Pages (Login/Signup) --- */
body.auth-body {
    background: linear-gradient(135deg, var(--bg-color) 0%, #e0e7ff 100%);
    justify-content: center;
    align-items: center;
}

.auth-container {
    width: 420px;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-box h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-box.hidden {
    display: none;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
    pointer-events: none;
}

.input-group input:focus~i {
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 16px;
    border: 2px solid transparent;
    background-color: #f9fafb;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.input-group input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.input-group input::placeholder {
    color: #9ca3af;
}

.btn {
    width: 100%;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    box-shadow: 0 4px 6px -1px rgba(67, 97, 238, 0.4);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(67, 97, 238, 0.5);
}

.btn:active {
    transform: translateY(0);
}

/* Generalized Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.message {
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-muted);
}

.message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.message a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.error-msg {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 12px;
    min-height: 24px;
    font-weight: 500;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Sidebar Styling is in sidebar.css, but we will assume it imports properly */

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

/* Top Bar */
.top-bar {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.top-bar.scrolled {
    box-shadow: var(--shadow-sm);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background-color: #fee2e2;
    color: var(--danger-color);
    border-color: #fecaca;
}

/* Content Area */
.content-area {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* --- Clients Grid --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.client-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 97, 238, 0.3);
}

.edit-client-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.edit-client-btn:hover {
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transform: scale(1.1);
}

.delete-client-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.delete-client-btn:hover {
    color: var(--danger-color);
    background-color: #fee2e2;
    box-shadow: var(--shadow-sm);
    transform: scale(1.1);
    border-color: #fca5a5;
}

.client-img-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    /* Ensure z-index context if needed, but relative does that */
}

.client-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f3f4f6;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    display: block;
    /* Removes bottom spacing */
}

.client-card:hover .client-img {
    transform: scale(1.05);
}

.client-instagram-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: #e1306c;
    /* Instagram Brand Color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 20;
    text-decoration: none;
    transition: transform 0.2s;
    border: 2px solid #fff;
    /* Optional: adds separation from image */
}

.client-instagram-badge:hover {
    transform: scale(1.15) rotate(5deg);
}

.client-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-color);
}

.client-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-price-tag {
    background-color: #eff6ff;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid #dbeafe;
}

/* Client Stats & Progress Bar */
.client-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 16px 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stat-item i {
    color: var(--primary-light);
    font-size: 14px;
}

.money-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 12px;
    display: flex;
    position: relative;
}

.money-bar-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.money-bar-segment.paid {
    background-color: var(--success-color);
}

.money-bar-segment.unpaid {
    background: var(--danger-color);
}

.money-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
}

.paid-label {
    color: var(--success-color);
}

.unpaid-label {
    color: var(--danger-color);
}

/* --- Reels Grid --- */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.reel-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 97, 238, 0.2);
}

/* Reel Status Button */
.status-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.status-btn.paid {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-btn.paid:hover {
    background-color: #d1fae5;
    transform: scale(1.05);
}

.status-btn.unpaid {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-btn.unpaid:hover {
    background-color: #fee2e2;
    transform: scale(1.05);
}

.reel-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    /* Space for the absolute button */
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.reel-link-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s;
    width: fit-content;
}

.reel-link-display:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.reel-details {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.reel-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.reel-detail-item i {
    width: 20px;
    text-align: center;
    color: #9ca3af;
}

.price-value {
    color: var(--text-color);
    font-weight: 800;
    font-size: 16px;
    margin-right: auto;
    /* Push to left in RTL */
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    color: var(--text-muted);
}

.empty-state p {
    font-size: 18px;
    font-weight: 500;
}

/* Expense Types */
.expense-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fee2e2;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.client-card:hover .expense-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    /* Darker backdrop */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background-color: var(--card-bg);
    width: 480px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 20px;
    /* More rounded */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(0) scale(1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy effect */
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 800;
}

.close-modal {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background-color: #fee2e2;
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* Custom Select */
.custom-select {
    width: 100%;
    height: 52px;
    padding: 0 45px 0 16px;
    border: 2px solid transparent;
    /* Match inputs */
    background-color: #f9fafb;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-color);
    outline: none;
    appearance: none;
    box-shadow: inset 0 0 0 1px var(--border-color);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 16px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* High elevation */
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 340px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
}

.toast.hidden {
    top: -100px;
    opacity: 0;
    visibility: hidden;
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

/* Undo Toast */
.undo-toast {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-width: 380px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.undo-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    width: 100%;
}

.undo-actions {
    margin-right: auto;
    padding-left: 20px;
}

.btn-undo {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-undo:hover {
    background: #e5e7eb;
    color: var(--danger-color);
}

.undo-progress-bar {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
}

.undo-progress {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
    transition: width 1s linear;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    .clients-grid,
    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 24px;
    }

    .top-bar {
        padding: 0 20px;
        height: 70px;
    }

    .modal-content {
        width: 90%;
        padding: 24px;
    }
}

/* Expenses Page Styles */
.summary-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.summary-details h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
}

.summary-label {
    font-size: 12px;
    color: var(--text-muted);
}

.log-list {
    display: flex;
    flex-direction: column;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.log-item:last-child {
    border-bottom: none;
}

.log-item:hover {
    background-color: #f9fafb;
}

.log-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: var(--danger-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.log-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.log-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.log-amount {
    font-weight: 700;
    color: var(--danger-color);
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Checklist Styles for Used Items */
.checklist-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.checklist-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.checklist-item {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checklist-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-item:hover .checkmark {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.checklist-item input:checked~.checkmark {
    background-color: #eff6ff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    z-index: 10001;
    min-width: 180px;
    animation: menuScale 0.15s ease-out;
}

@keyframes menuScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.context-menu-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.context-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.context-menu-item:hover i {
    color: var(--primary-color);
}

.context-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
}

.context-menu-header {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}