/* ═══════════════════════════════════════════
   TRENDARYO DASHBOARD — Cosmic Glassmorphism
   Matches site-wide dark theme
   ═══════════════════════════════════════════ */

/* ── Auth Overlay ── */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a0a2a, #1a1a40);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.08);
}

.auth-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f0ff, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.auth-logo p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab:hover {
    background: rgba(0, 240, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 170, 0.15));
    color: #ffffff;
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-input:focus {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.auth-submit {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 170, 0.2));
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 170, 0.3));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.auth-error {
    color: #ff6b35;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
    min-height: 1.2rem;
}

/* ── Logout Button ── */
.btn-logout {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.btn-logout:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.15);
}

/* ── Page Base ── */
body {
    background: transparent;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page-offset {
    padding-top: 0;
}

/* ── Dashboard Container ── */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

/* ── Sidebar ── */
.sidebar {
    width: 260px;
    background: rgba(5, 5, 30, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-right: 1px solid rgba(0, 240, 255, 0.25);
    padding: 2rem 1rem;
    position: relative;
    height: auto;
    overflow-y: auto;
    z-index: 1;
}

.sidebar .logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f0ff, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.sidebar .logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* ── Tab Buttons ── */
.tab-btn {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.tab-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.2);
    color: #ffffff;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 170, 0.15));
    border-color: rgba(0, 240, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    overflow-y: auto;
}

.main-content > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.main-content > header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f0ff, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.user-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(5, 5, 30, 0.6);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #00f0ff, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.profit .stat-number {
    background: linear-gradient(135deg, #00ff88, #00f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.warning .stat-number {
    background: linear-gradient(135deg, #ff6b35, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Quick Actions ── */
.quick-actions {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.quick-actions h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.quick-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: #ffffff;
}

.quick-btn.primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 170, 0.2));
    border-color: rgba(0, 240, 255, 0.4);
    color: #ffffff;
}

.quick-btn.primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

/* ── Section Header ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* ── Buttons ── */
.btn-primary, .btn-secondary, .btn-success {
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 0, 170, 0.25));
    border-color: rgba(0, 240, 255, 0.4);
    color: #ffffff;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 0, 170, 0.35));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-success {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.btn-success:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* ── Suppliers & Products Grid ── */
.suppliers-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.supplier-card, .product-card {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.supplier-card:hover, .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}

.supplier-card h3, .product-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.supplier-card .category {
    color: rgba(0, 240, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.supplier-card .details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.product-card .cost,
.product-card .price,
.product-card .profit {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.product-card .cost { color: rgba(255, 255, 255, 0.5); }
.product-card .price { color: #00f0ff; }
.product-card .profit { color: #00ff88; font-weight: 600; }

.product-card .product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.03);
}

.product-card .supplier {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.product-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-connect, .btn-import {
    display: inline-block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 170, 0.2));
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-connect:hover, .btn-import:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 170, 0.3));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* ── Data Table ── */
.table-responsive {
    overflow-x: auto;
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
}

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

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.data-table th {
    background: rgba(0, 240, 255, 0.1);
    font-weight: bold;
    color: rgba(0, 240, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.data-table td .suggested {
    color: #00ff88;
    font-weight: 600;
}

.data-table td .positive { color: #00ff88; }
.data-table td .negative { color: #ff6b35; }

.low-stock-row {
    background: rgba(255, 107, 53, 0.08);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: #00f0ff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-small:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* ── Orders List ── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.order-card .order-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #00f0ff;
    letter-spacing: 1px;
}

.order-card .order-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.order-card .order-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.order-card .order-details strong {
    color: rgba(255, 255, 255, 0.9);
}

.order-card.pending {
    border-left: 4px solid #ff6b35;
}

.order-card.fulfilled {
    border-left: 4px solid #00ff88;
    opacity: 0.6;
}

.fulfilled-badge {
    color: #00ff88;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn-fulfill {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-fulfill:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* ── Profit Stats ── */
.profit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profit-card {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.profit-card h3 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profit-card .big-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00f0ff, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.5rem;
}

/* ── Optimization Tips ── */
.optimization-tips {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.optimization-tips h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.optimization-tips ul {
    list-style: none;
    padding: 0;
}

.optimization-tips li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.optimization-tips li::before {
    content: '→ ';
    color: #00f0ff;
}

/* ── Automation Hero ── */
.hero-section {
    text-align: center;
    padding: 3rem;
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f0ff, #ff00aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.run-all-btn {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 0, 170, 0.25));
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #ffffff;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.run-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), 0 0 80px rgba(255, 0, 170, 0.15);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 0, 170, 0.35));
}

/* ── Tasks Grid ── */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: rgba(5, 5, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.task-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
}

.task-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.task-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ── Loading Overlay ── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #00f0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Alert Banner ── */
.alert-banner {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-left: 4px solid #ff6b35;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Tab Content ── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
.bulk-actions {
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

/* ── Scrollbar ── */
.sidebar::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.sidebar::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 1rem 0.5rem;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    }
    .sidebar .logo h2,
    .sidebar .logo p,
    .tab-btn span:first-child + span {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    .tab-btn {
        justify-content: center;
        padding: 0.75rem;
    }
    .stats-grid,
    .suppliers-grid,
    .products-grid,
    .profit-stats,
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    .main-content > header h1 {
        font-size: 1.2rem;
    }
}
