/* Stock Status Styles */
.stock-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.stock-status.in-stock {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.stock-status.low-stock {
    background-color: #fff3e0;
    color: #f57c00;
}

.stock-status.out-of-stock {
    background-color: #fde7e9;
    color: #dc3545;
}

/* Action Button Styles */
.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    font-size: 0.875rem;
}

.action-btn.delete {
    background-color: #dc3545;
}

.action-btn:hover {
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Admin Specific Styles */
.login-body {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-card h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.demo-credentials {
    margin-top: 20px;
    padding: 15px;
    background: var(--background);
    border-radius: 5px;
    text-align: center;
}

.demo-credentials p {
    margin: 5px 0;
    font-size: 0.9rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    margin-bottom: 15px;
}

/* Admin Dashboard */
.admin-body {
    margin: 0;
    background: var(--background);
}

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

.sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

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

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border);
}

.sidebar-nav .nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--white);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

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

.section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
    min-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.data-table th,
.data-table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    border-right: 1px solid var(--border);
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

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

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

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

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0 0 0;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-confirmed {
    background: #cce7ff;
    color: #004085;
    padding: 4px 8px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .sales-stats {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        min-width: 100%;
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 6px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 15px;
    }
}