@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #fffdf5;
    --card-bg: #ffffff;
    --sidebar-bg: #008a99;
    --sidebar-text: #e0f2f1;
    --sidebar-active-bg: linear-gradient(135deg, #f7941d 0%, #fdb913 100%);
    --sidebar-active-text: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #fdb913;
    --accent-hover: #f7941d;
    --secondary-blue: #60a5fa;
    --success: #008a99;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0EA5E9;

    --shadow-sm: 0px 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0px 18px 40px rgba(6, 78, 59, 0.08);
    --shadow-hover: 0px 20px 40px rgba(16, 185, 129, 0.25);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-header {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header h2 {
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-item {
    padding: 14px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.4);
    transform: translateX(4px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer .nav-item {
    color: #EE5D50;
}

.sidebar-footer .nav-item:hover {
    background-color: rgba(238, 93, 80, 0.1);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
}

.main-content::before,
.main-content::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 185, 19, 0.1) 0%, rgba(253, 185, 19, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.main-content::before {
    top: -100px;
    right: -200px;
}

.main-content::after {
    bottom: -150px;
    left: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(253, 185, 19, 0.08) 0%, rgba(253, 185, 19, 0) 70%);
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

/* PREMIUM TOPBAR */
.topbar {
    background: linear-gradient(135deg, rgb(255, 177, 52) 0%, #f7bd61 50%, #ffcf49 100%);
    padding: 20px 40px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.2);
    color: #1e293b;
    border-bottom: none;
}

.topbar-left h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.topbar-subtitle {
    color: #008a99;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar .icon-btn {
    color: #1e293b;
}

.topbar .badge {
    background: #008a99;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.content-body {
    padding: 15px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-body {
    padding: 30px 40px;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--sidebar-active-bg);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.2);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: rgba(67, 24, 255, 0.05);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* SUMMARY CARDS */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(224, 229, 242, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--sidebar-active-bg);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Enhanced Stat Cards */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    background: white;
    border: 1px solid #edf2f7;
    padding: 24px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.stat-card.success .icon-box {
    background: #ECFDF5;
    color: #008a99;
}

.stat-card.info .icon-box {
    background: #EFF6FF;
    color: #3B82F6;
}

.stat-card.warning .icon-box {
    background: #FFFBEB;
    color: #F59E0B;
}

.stat-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1E293B;
    margin: 0;
    line-height: 1;
}

.stat-card .trend {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card .trend i {
    font-size: 0.75rem;
}

.stat-card .trend.up {
    color: #008a99;
}

.stat-card .trend.neutral {
    color: #64748B;
}

.stat-card .card-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.03;
}

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

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

/* WIDGETS */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
    /* Makes cards grow only based on content */
}

@media (max-width: 1200px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}

.widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.widget-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header h3::before {
    content: '';
    width: 6px;
    height: 18px;
    background: #008a99;
    border-radius: 10px;
}

.widget-body {
    padding: 25px;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -40px;
    top: 5px;
    /* Aligned better with first line of content */
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}

.bg-success {
    background: var(--success);
}

.bg-primary {
    background: var(--sidebar-active-bg);
}

.bg-warning {
    background: var(--warning);
}

.bg-info {
    background: var(--info);
}

.timeline-content {
    background: white;
    padding: 18px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: #008a99;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.timeline-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    font-size: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-time {
    font-weight: 700;
    color: #CBD5E1;
    font-size: 0.8rem;
}

/* NOTIFICATIONS */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.notification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #f1f5f9;
}

.notif-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

@keyframes pulse-urgent {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.urgent {
    border-left: 4px solid #ef4444;
}

.urgent:hover {
    animation: pulse-urgent 2s infinite;
}

.warning {
    border-left: 4px solid #f59e0b;
}

.success {
    border-left: 4px solid #008a99;
}

.urgent .notif-indicator {
    background: var(--danger);
}

.warning .notif-indicator {
    background: var(--warning);
}

.info .notif-indicator {
    background: var(--info);
}

.notif-content {
    flex: 1;
    padding: 0 16px;
}

.notif-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.notif-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TABLE CONTAINERS AND FILTERS */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    flex: 1;
    margin-bottom: 30px;
    border: 1px solid rgba(224, 229, 242, 0.5);
}

.filters-container {
    display: flex;
    gap: 20px;
    padding: 24px 40px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 20;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .filters-container {
        flex-wrap: wrap;
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1);
    background: #FFF;
}

/* TABLES */
.data-table,
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.product-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #F8FAFC;
    text-align: left;
    white-space: nowrap;
}

.data-table td,
.product-table td {
    padding: 20px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    vertical-align: middle;
}

.product-table td {
    white-space: nowrap;
}

.data-table tbody tr,
.product-table tbody tr {
    transition: background-color 0.2s;
    background-color: var(--card-bg);
}

.data-table tbody tr:hover,
.product-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Custom Table Elements */
.product-name-col {
    display: flex;
    align-items: center;
    gap: 16px;
}

.img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.editable-input {
    width: 80px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
    background: #F8FAFC;
    transition: var(--transition);
}

.editable-input:focus {
    background: #FFF;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1);
}

.status-active {
    color: var(--success) !important;
    font-weight: 800;
}

.status-inactive {
    color: var(--danger) !important;
    font-weight: 800;
}

/* ACTIONS MENU */
.actions-cell,
.actions-col {
    position: relative;
    text-align: center;
}

.action-trigger,
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-trigger:hover,
.icon-btn:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

.action-menu {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #FFF;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    min-width: 180px;
    padding: 8px 0;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform-origin: right center;
}

.action-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.menu-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.menu-item:hover {
    background: #F8FAFC;
    color: var(--accent-color);
    padding-left: 24px;
}

/* PAGINATION */
.pagination {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-muted);
}

.pagination select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    background: #F8FAFC;
}

.pagination select:focus {
    border-color: var(--accent-color);
}

/* ==== DYNAMIC DASHBOARD ANIMATIONS ==== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton {
    background: #F1F5F9;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.6) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-line {
    background: #E2E8F0;
    border-radius: 4px;
}


/* ==== PREMIUM FORMS ==== */
.form-card {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 40px;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.grid-full {
    grid-column: 1 / -1;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.required {
    color: #EE5D50;
    margin-left: 2px;
}

.form-control {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #A3AED0;
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1);
}

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

/* Yellow Button Specific (Matching Screenshot) */
.btn-warning {
    background: #FFB800;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.btn-warning:hover {
    background: #FFCA3A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}


/* ==== COMPACT PREMIUM FORMS ==== */
.form-card-compact {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 32px;
}

.premium-form-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

@media (max-width: 900px) {
    .form-grid-compact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .form-grid-compact {
        grid-template-columns: 1fr;
    }
}

.grid-span-2 {
    grid-column: span 2;
}

.grid-span-3 {
    grid-column: 1 / -1;
}

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

.form-group-compact label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-control-compact {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.form-control-compact:focus {
    background: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

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


/* ==== USER PROFILE DETAIL DASHBOARD ==== */

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 24px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-signout {
    color: var(--danger);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-signout:hover {
    color: #C81E1E;
    transform: translateX(2px);
}

/* Tabs */
.profile-tabs-container {
    background: transparent;
    padding: 0 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.profile-tabs {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
}

.tab-item {
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-item:hover {
    color: var(--accent-color);
}

.tab-item.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (max-width: 1000px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column - Uploads */
.upload-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.upload-box {
    width: 200px;
    height: 150px;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9rem;
    background: #F8FAFC;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.upload-box:hover {
    background: #F1F5F9;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.upload-box.banner {
    width: 100%;
    height: 120px;
}

.profile-summary {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 10px;
}

.profile-summary h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.profile-summary p {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}


/* Right Column - Info */
.info-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Table Row Clickable */
.data-table tbody tr,
.product-table tbody tr {
    cursor: pointer;
}


/* ==== TERMS AND CONDITIONS TAB ==== */
.agreement-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    display: none;
    /* Hidden by default */
}

.agreement-scrollbox {
    width: 100%;
    height: 400px;
    overflow-y: auto;
    padding-right: 20px;
    margin-bottom: 24px;
}

/* Custom Scrollbar */
.agreement-scrollbox::-webkit-scrollbar {
    width: 6px;
}

.agreement-scrollbox::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

.agreement-scrollbox::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.agreement-scrollbox::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.agreement-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.agreement-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.agreement-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #20B2AA;
    /* Teal color matching the screenshot */
    margin-top: 24px;
    margin-bottom: 8px;
}

.agreement-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.agreement-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.agreement-checkbox-wrapper label {
    font-size: 0.9rem;
    color: #A3AED0;
    /* Disabled/unaccepted look */
    font-weight: 500;
    cursor: pointer;
}

.agreement-checkbox-wrapper input[type="checkbox"]:checked+label {
    color: var(--text-main);
}


/* Override Agreement Text Visibility & Disabled Checkbox */
.agreement-text {
    color: var(--text-main) !important;
    font-weight: 500;
}

.agreement-checkbox-wrapper input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: default !important;
}

/* ==== FULL SCREEN LOGO LOADER ==== */
#initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 25%, #99f6e4 50%, #4dd0e1 75%, #008a99 100%);
    background-size: 300% 300%;
    animation: seashoreFade 3s ease infinite;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

@keyframes seashoreFade {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#initial-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 350px;
    animation: logoPulse 1.2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes logoPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

/* ==== PREMIUM TABLE STYLING ENHANCEMENTS ==== */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 0;
    /* overflow: hidden removed so dropdowns can escape */
}

.data-table,
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.data-table th,
.product-table th {
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td,
.product-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.data-table tbody tr:last-child td,
.product-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr,
.product-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover td,
.product-table tbody tr:hover td {
    background-color: #F8FAFC;
    /* Subtle gray/blue tint on hover */
    color: var(--accent-hover);
}

/* Make rows pop slightly on hover along with pointer */
.data-table tbody tr:hover,
.product-table tbody tr:hover {
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.05);
    /* Slight emerald shadow */
    position: relative;
    z-index: 10;
}


/* Compact Table for Single View */
.data-table th,
.product-table th {
    padding: 14px 12px;
    font-size: 0.70rem;
    white-space: nowrap;
}

.data-table td,
.product-table td {
    padding: 14px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Ensure actions column can show dropdowns */
.data-table td.actions-col,
.product-table td.actions-col {
    overflow: visible;
}

/* Give specific widths to columns to force single view */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 5%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 15%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 20%;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 15%;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 15%;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 10%;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 10%;
}

.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    width: 10%;
}

.table-container {
    overflow: visible;
    /* Ensure dropdowns don't get trapped */
}


/* ==== PREMIUM ACTION DROPDOWN ==== */
.actions-col {
    position: relative;
    text-align: right;
    /* Keep dots on the right edge */
}

.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--bg-color);
    color: var(--text-main);
}

.dropdown-menu {
    position: absolute;
    right: 30px;
    /* Offset from right edge inside cell */
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    min-width: 130px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform-origin: top right;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.dropdown-item.delete {
    color: var(--danger);
}

.dropdown-item.delete:hover {
    background: #FEF2F2;
    /* Very light red based on danger color */
    color: #DC2626;
    /* Darker red on hover */
}

/* ==== CUSTOMER MODAL ==== */
.customer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 44, 34, 0.4);
    /* Dark emerald tint */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.customer-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.customer-modal-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
    position: relative;
}

.customer-modal-overlay.show .customer-modal-card {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.modal-profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 24px;
    border: 4px solid var(--border-color);
    background: var(--bg-color);
    padding: 10px;
}

.modal-customer-name {
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.modal-customer-info {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ==== ID/ADMIT CARD STYLING ==== */
.customer-modal-card.id-card-style {
    padding: 0;
    overflow: hidden;
    max-width: 380px;
    background: #FFFFFF;
    background-image: repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.03) 0, rgba(16, 185, 129, 0.03) 2px, transparent 2px, transparent 8px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.25);
}

.id-card-header {
    background: linear-gradient(135deg, #008a99 0%, #004c54 100%);
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #4dd0e1;
}

.id-card-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0;
}

/* Lanyard hole mock */
.id-card-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: var(--bg-color);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.id-card-style .modal-close-btn {
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.id-card-style .modal-close-btn:hover {
    color: #FFFFFF;
}

.id-card-body {
    padding: 30px 20px;
    text-align: left;
}

.id-photo-container {
    text-align: center;
    margin-bottom: 25px;
}

.id-card-style .modal-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    /* Square ID photo look */
    object-fit: cover;
    margin-bottom: 0px;
    border: 3px solid var(--border-color);
    background: #F8FAFC;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.id-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.id-field {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.id-field label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.id-field .modal-customer-name {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 800;
}

.id-field .modal-customer-info {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.id-card-footer {
    background: #F8FAFC;
    padding: 15px;
    text-align: center;
    border-top: 1px dashed var(--border-color);
}

.barcode-mock {
    font-family: inherit;
    /* Fallback to standard tracking */
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
    opacity: 0.4;
    margin-bottom: 5px;
}

.id-card-footer p {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin: 0;
}


/* ==== BUSINESS BOARD MODAL STYLING ==== */
.customer-modal-card.business-board-style {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    /* Changed from 30px for edge-to-edge header */
    overflow-y: hidden;
    /* Hide main overflow, let body scroll */
    text-align: left;
    background: #FFFFFF;
    background-image: repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.03) 0, rgba(16, 185, 129, 0.03) 2px, transparent 2px, transparent 8px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.25);
    display: flex;
    flex-direction: column;
}

.business-board-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    /* Take up remaining height */
}

/* Ensure tabs don't collapse modal height */
.board-tab-content {
    min-height: 500px;
}

.business-board-body::-webkit-scrollbar {
    width: 6px;
}

.business-board-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

/* Highly visible close button for board */
.business-board-style>.modal-close-btn {
    top: 12px;
    right: 20px;
    z-index: 1010;
    color: var(--text-main);
    background: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Stronger shadow */
    border: 1px solid var(--border-color);
}

.business-board-style>.modal-close-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* ==== PRODUCT CARD GRID ==== */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: visible;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

.product-card-img {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.product-card-title {
    flex: 1;
    min-width: 0;
}

.product-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.product-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.product-card-label {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-value {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.product-status {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.product-card-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Card 3-dot action menu positioning */
.product-card-actions-wrap .action-menu {
    top: 100%;
    right: 0;
    transform: none;
}

.product-card-actions-wrap .action-menu.show {
    transform: none;
}


/* ==== ACTION DROPDOWN MENU ==== */
.actions-cell {
    position: relative;
    text-align: center;
}

.action-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: #6B7280;
    border-radius: 6px;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-trigger:hover {
    background: #F3F4F6;
    color: #111827;
}

.action-menu {
    display: none;
    position: absolute;
    right: 4px;
    top: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.06);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    animation: menuFadeIn 0.12s ease;
}

.action-menu.show {
    display: block;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.12s;
}

.menu-item:hover {
    background: #F9FAFB;
}

.menu-item i {
    width: 14px;
    text-align: center;
}

/* ==== EDIT PRODUCT MODAL FORM ==== */
.edit-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.edit-input {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.edit-input:focus {
    border-color: #008a99;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* CATEGORY IMAGE UPLOAD ZONE */
.category-img-upload-zone {
    width: 160px;
    height: 160px;
    margin: 10px auto;
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: #F8FAFC;
    overflow: hidden;
    position: relative;
}

.category-img-upload-zone:hover {
    border-color: #008a99;
    background: rgba(0, 138, 153, 0.05);
}

.category-img-upload-zone .zone-icon {
    font-size: 1.5rem;
    color: #64748B;
}

.category-img-upload-zone .zone-text {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

/* ==== SHIMMER LOADING ==== */
.shimmer-row td {
    position: relative;
    overflow: hidden;
}

.shimmer-row td::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==== PLUS PLACEHOLDER ==== */
.plus-placeholder {
    width: 38px;
    height: 38px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plus-placeholder:hover {
    background: rgba(0, 138, 153, 0.05);
    border-color: #fdb913;
    color: #fdb913;
}

.cat-icon-box .plus-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Direct Upload Feedback Styles */
@keyframes pulse-border {
    0% {
        border-color: #CBD5E1;
    }

    50% {
        border-color: #6366F1;
    }

    100% {
        border-color: #CBD5E1;
    }
}

.cat-icon-box.drag-active,
.rest-direct-box.drag-active,
.hyper-direct-box.drag-active {
    border: 2px dashed #6366F1 !important;
    background: rgba(99, 102, 241, 0.1) !important;
    animation: pulse-border 1s infinite;
}

.cat-icon-box.clickable-img-box:hover,
.rest-direct-box:hover,
.hyper-direct-box:hover {
    transform: scale(1.05);
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.plus-placeholder {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}