/* El Duro Vaper - Sales Tracking System Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --white: #ffffff;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px; /* Fixed compact height */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem; /* Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem; /* Reduced size */
    font-weight: bold;
    gap: 0.8rem;
}

.company-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--warning-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.app-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.nav-logo i {
    margin-right: 0.5rem;
    color: var(--warning-color);
    font-size: 1.3rem; /* Reduced icon size */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 0.5rem; /* Added gap, removed individual margins */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0.8rem; /* Reduced padding */
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem; /* Reduced gap */
    font-size: 0.85rem; /* Smaller font */
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
}

.nav-link i {
    margin-right: 0.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Company Footer */
.company-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 3px solid var(--warning-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    border-radius: 4px;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--warning-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.footer-version {
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: monospace;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .footer-logo-img {
        height: 28px;
    }
    
    .footer-company-name {
        font-size: 1.1rem;
    }
}

/* Main Content */
.main-content {
    margin-top: 60px; /* Reduced to match compact navbar */
    padding: 1.5rem; /* Slightly reduced padding */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.page-header h1 i {
    margin-right: 0.5rem;
}

.page-header-branding {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.company-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.powered-by {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.header-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    border-radius: 3px;
}

.company-name-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.date-time {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--light-text);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #6c7b7d;
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-primary i,
.btn-secondary i,
.btn-success i,
.btn-danger i {
    margin-right: 0.5rem;
}

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

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: var(--success-color);
    color: var(--white);
}

.stat-card:nth-child(2) .stat-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.stat-card:nth-child(3) .stat-icon {
    background-color: var(--warning-color);
    color: var(--white);
}

.stat-card:nth-child(4) .stat-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.stat-info p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.dashboard-section h2 i {
    margin-right: 0.5rem;
}

/* Inventory Controls */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    outline: none;
}

.search-box input::placeholder {
    color: var(--light-text);
    font-style: italic;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-controls select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Tables */
.inventory-table-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

.inventory-table th,
.inventory-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.inventory-table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.inventory-table tr:hover {
    background-color: var(--light-bg);
}

/* POS Layout */
.pos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: calc(100vh - 200px);
}

.pos-left {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    overflow-y: auto;
}

.pos-right {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-search {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.product-search input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background: linear-gradient(135deg, #f8f9ff, #fff5f8);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-card:active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-card h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.3;
}

.product-card .price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--success-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-card .stock {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-card .stock.low-stock {
    color: var(--danger-color);
    font-weight: 600;
    background: #ffe5e5;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
}

.product-card button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-card button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Cart Section */
.cart-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cart-section h3 i {
    margin-right: 0.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-price {
    color: var(--light-text);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--light-bg);
}

.cart-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.subtotal,
.tax,
.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.payment-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
}

.close {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--dark-text);
}

/* Forms */
form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-in-stock {
    background-color: var(--success-color);
    color: var(--white);
}

.status-low-stock {
    background-color: var(--warning-color);
    color: var(--white);
}

.status-out-of-stock {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin-right: 0.25rem;
    transition: var(--transition);
}

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

.action-btn.edit {
    color: var(--secondary-color);
}

.action-btn.delete {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem; /* Reduced padding on mobile */
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Updated for compact navbar */
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        gap: 0; /* Remove gap in mobile */
    }
    
    .nav-link {
        padding: 1rem; /* Larger touch targets on mobile */
        font-size: 0.9rem; /* Slightly larger on mobile */
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-content {
        padding: 1rem;
    }

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

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

    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-right {
        order: -1;
        max-height: 400px;
    }

    .inventory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: space-between;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger {
        display: none !important;
    }

    .main-content {
        margin-top: 0;
    }

    .page {
        display: block !important;
    }
}

/* Enterprise Scanner Styles */
.scanner-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .scanner-container {
        grid-template-columns: 1fr;
    }
}

.scanner-video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4757, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.scanner-controls {
    display: flex;
    gap: 10px;
}

.scanner-results {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.manual-input {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.manual-input input {
    width: 100%;
    margin-bottom: 10px;
}

/* Employee Management Styles */
.employee-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.employee-table-container {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

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

.employee-table th,
.employee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.employee-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.employee-table tr:hover {
    background: var(--light-bg);
}

.time-clock {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.clock-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.clock-controls button {
    flex: 1;
}

.employee-role {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.role-owner { background: #ff6b6b; color: white; }
.role-manager { background: #4ecdc4; color: white; }
.role-supervisor { background: #45b7d1; color: white; }
.role-cashier { background: #96ceb4; color: white; }
.role-intern { background: #feca57; color: #333; }

.employee-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-active { background: #2ed573; color: white; }
.status-break { background: #ffa502; color: white; }
.status-inactive { background: #747d8c; color: white; }

/* Multi-Store Management Styles */
.current-store-info {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.store-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.store-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-online { background: #2ed573; color: white; }
.status-offline { background: #ff4757; color: white; }
.status-syncing { background: #3742fa; color: white; }

.cloud-sync-section {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sync-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator i {
    color: #ff4757;
}

.status-indicator.online i {
    color: #2ed573;
}

.sync-controls {
    display: flex;
    gap: 10px;
}

.sync-controls input {
    flex: 1;
}

/* Enhanced Reports Styles */
.report-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-type-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: var(--shadow);
}

.report-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.report-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.report-type-card h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.report-type-card p {
    color: var(--light-text);
    font-size: 0.9em;
    line-height: 1.4;
}

.kpi-dashboard {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kpi-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.kpi-value {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.kpi-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Enhanced Settings Styles */
.settings-tabs {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.tab-nav {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    color: var(--light-text);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.hardware-status {
    display: grid;
    gap: 15px;
}

.hardware-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hardware-item i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.hardware-item span {
    flex: 1;
    font-weight: 500;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 10px;
}

.status.connected {
    background: #2ed573;
    color: white;
}

.status.disconnected {
    background: #ff4757;
    color: white;
}

.integration-list {
    display: grid;
    gap: 15px;
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.integration-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-text);
}

.integration-info p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9em;
}

/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-form {
    padding: 20px;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}

.demo-credentials {
    text-align: center;
    padding: 10px 20px 20px;
    color: var(--light-text);
}

/* User Profile Display */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    margin-left: auto;
}

.user-avatar {
    width: 28px; /* Reduced size */
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem; /* Smaller font */
}

.user-info {
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 0.8rem; /* Reduced size */
    line-height: 1;
}

.user-role {
    font-size: 0.7rem; /* Reduced size */
    opacity: 0.8;
    line-height: 1;
}

.logout-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

/* Enterprise Mobile Responsive Design */
@media (max-width: 768px) {
    .employee-stats {
        grid-template-columns: 1fr;
    }
    
    .report-types {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .clock-controls {
        flex-direction: column;
    }
    
    .sync-controls {
        flex-direction: column;
    }
    
    .hardware-item {
        flex-direction: column;
        text-align: center;
    }
    
    .integration-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .store-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .sync-status {
        flex-direction: column;
        gap: 10px;
    }
}

/* Vape Store Specific Styles */
.vape-specific-fields {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.vape-specific-fields h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vape-specific-fields h4::before {
    content: "🔥";
    font-size: 1.2em;
}

.category-specific {
    background: var(--white);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid var(--secondary-color);
}

.nicotine-warning {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.nicotine-warning i {
    font-size: 1.5em;
    color: #fff;
}

.age-verification-content {
    text-align: center;
    padding: 20px;
}

.warning-notice {
    background: #ffe5e5;
    color: #d63031;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.warning-notice i {
    font-size: 2em;
    color: #d63031;
}

.verification-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.verification-options button {
    padding: 15px 30px;
    font-size: 1.1em;
}

#manual-verification {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.verification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.vape-category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
}

.badge-devices { background: #74b9ff; color: white; }
.badge-eliquids { background: #00b894; color: white; }
.badge-accessories { background: #fdcb6e; color: #333; }
.badge-hardware { background: #e17055; color: white; }

.nicotine-strength-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 5px;
}

.nicotine-0 { background: #00b894; color: white; }
.nicotine-low { background: #fdcb6e; color: #333; }
.nicotine-medium { background: #e17055; color: white; }
.nicotine-high { background: #d63031; color: white; }

.age-restricted-indicator {
    color: #d63031;
    font-weight: bold;
    font-size: 0.9em;
}

.age-restricted-indicator::before {
    content: "🔞 ";
}

/* Vape Product Grid Enhancements */
.vape-product-card {
    position: relative;
}

.vape-product-card .age-restriction-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d63031;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.vape-product-attributes {
    margin: 10px 0;
    font-size: 0.9em;
    color: var(--light-text);
}

.vape-product-attributes span {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 6px;
    background: var(--light-bg);
    border-radius: 3px;
}

/* Compliance Dashboard */
.compliance-dashboard {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.compliance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.compliance-stat {
    text-align: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
}

.compliance-stat.compliant {
    border-left: 4px solid #00b894;
}

.compliance-stat.warning {
    border-left: 4px solid #fdcb6e;
}

.compliance-stat.violation {
    border-left: 4px solid #d63031;
}

.compliance-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.compliance-label {
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 5px;
}

/* Enhanced Inventory Management Styles */
.inventory-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-weight: 600;
}

.quick-scanner-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.scanner-card {
    padding: 0;
}

.scanner-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanner-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scanner-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .scanner-content {
        grid-template-columns: 1fr;
    }
}

.scanner-video-wrapper {
    position: relative;
    text-align: center;
}

.scanner-instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.scanner-results {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 6px;
}

.manual-barcode-entry {
    margin-top: 15px;
}

.manual-barcode-entry input {
    width: 100%;
    margin-bottom: 10px;
}

.scan-result {
    background: var(--white);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
}

.scan-result h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.scan-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.scan-actions button {
    flex: 1;
    font-size: 0.9em;
    padding: 8px 12px;
}

.product-suggestion {
    background: var(--white);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.suggested-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

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

.suggestion-actions button {
    font-size: 0.9em;
    padding: 6px 12px;
}

/* Quick Add Modal */
.quick-add-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.quick-add-content {
    background: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.quick-add-content h3 {
    background: var(--success-color);
    color: white;
    margin: 0;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-add-content form {
    padding: 20px;
}

.quick-add-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .quick-add-content .form-row {
        grid-template-columns: 1fr;
    }
}

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

/* Enhanced product info displays */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-category {
    font-size: 0.8em;
    color: var(--light-text);
    text-transform: uppercase;
    font-weight: 600;
}

.stock-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.stock-level.low-stock {
    background: #ffe5e5;
    color: #d63031;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8em;
    margin: 0 2px;
}

/* Barcode display */
.barcode-display {
    font-family: 'Courier New', monospace;
    background: var(--light-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Import progress indicators */
.import-progress {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Success animations */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes flashHighlight {
    0% { background: var(--white); }
    50% { background: linear-gradient(135deg, #e8f5e8, #f0f8ff); }
    100% { background: var(--white); }
}

@keyframes slideInShine {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

.success-animation {
    animation: successPulse 0.5s ease-in-out;
}

.flash-highlight {
    animation: flashHighlight 0.8s ease-in-out;
}

.product-card.selected {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.product-card.adding {
    animation: successPulse 0.6s ease-in-out;
    border-color: var(--success-color);
}

/* Enhanced visual feedback */
.btn-primary:active,
.product-card button:active {
    animation: successPulse 0.3s ease-in-out;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: slideInShine 1.5s infinite;
}

/* High contrast text improvements */
.product-card h4,
.product-card .price,
.product-card .stock {
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

/* Better button visibility */
.btn-primary,
.btn-success,
.btn-secondary {
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary::before,
.btn-success::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-success:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .inventory-actions {
        flex-direction: column;
    }
    
    .inventory-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .scanner-content {
        padding: 15px;
    }
    
    .suggested-product {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .suggestion-actions {
        width: 100%;
        flex-direction: column;
    }
}