:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --border: #475569;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--surface);
    border-radius: calc(var(--radius) * 2);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-credentials {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.demo-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.role-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.role-badge.staff {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.credential-item p {
    font-size: 13px;
}

.credential-item .password {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

.info-card {
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
    text-align: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--accent);
}

.menu-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.main-content {
    padding: 24px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.top-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--primary);
}

.item-name {
    font-weight: 500;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-optimal {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.status-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}

.activity-entry {
    border-left-color: #4ade80;
}

.activity-sale {
    border-left-color: #60a5fa;
}

.activity-adjustment {
    border-left-color: #fbbf24;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.activity-quantity {
    font-size: 14px;
    font-weight: 700;
}

.activity-quantity.positive {
    color: #4ade80;
}

.activity-quantity.negative {
    color: #fca5a5;
}

/* STAFF DASHBOARD */
.staff-welcome {
    margin-bottom: 32px;
}

.staff-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.item-id {
    font-size: 11px;
    color: var(--text-tertiary);
}

.item-quantity {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quantity-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.quantity-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-light);
}

.btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.secondary:hover {
    background: var(--surface-light);
    color: var(--accent);
}

.stats-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-simple {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-simple p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.stat-simple span {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        width: 240px;
        border-right: 1px solid var(--border);
        transition: left 0.3s ease;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Add new form styles for staff pages */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.btn-action-small {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-small:hover {
    background: var(--accent-light);
}

/* Add settings page styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

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

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.setting-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Add tasks list styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.task-pending {
    border-left-color: #f59e0b;
}

.task-in-progress {
    border-left-color: #3b82f6;
}

.task-completed {
    border-left-color: #22c55e;
    opacity: 0.7;
}

.task-checkbox {
    flex-shrink: 0;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-due {
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-status {
    display: flex;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.full-width {
    width: 100%;
}

/* ----- SLIDESHOW AREA ----- */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: black;
    color: white;
    padding: 8px 0;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 5s linear infinite; /* adjust speed */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}



/* modal form  */
/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Modal Box */
.modal-box {
    width: 420px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #444;
}

.modal-box input,
.modal-box select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

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