/**
 * Custom Styles
 * Hotel POS System
 */

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #007bff;
    background-color: #e9ecef;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Main content */
main {
    padding-top: 48px;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Login page */
.min-vh-100 {
    min-height: 100vh;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Dashboard cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
}

.card.bg-warning {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        top: 0;
    }
    
    main {
        padding-top: 56px;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
    }
}

/* Custom utility classes */
.text-muted {
    color: #6c757d !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Sale items table */
.sale-items-table {
    margin-top: 1rem;
}

.sale-items-table th {
    background-color: #f8f9fa;
}

/* Low stock indicator */
.low-stock {
    color: #dc3545;
    font-weight: 600;
}

/* Success message */
.success-message {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Receipt styles */
.receipt {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-items {
    margin: 20px 0;
}

.receipt-total {
    border-top: 2px solid #000;
    padding-top: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}
