/* Restaurant POS System - Main Styles */
:root {
    --primary-color: #3F8522;
    --secondary-color: #E38F2D;
    --primary-light: #4CAF50;
    --secondary-light: #FF9800;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(63, 133, 34, 0.15);
    transform: translateY(-3px);
}

.card-header {
    background-color: rgba(63, 133, 34, 0.05);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(63, 133, 34, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(63, 133, 34, 0.05);
}

/* Status badges */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 0.375rem;
}

.badge-success {
    background-color: var(--primary-color);
}

.badge-warning {
    background-color: var(--secondary-color);
}

.badge-danger {
    background-color: #dc3545;
}

.badge-primary {
    background-color: #0d6efd;
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    transition: all 0.3s;
    border-radius: 0.375rem;
    margin: 0.25rem 0.125rem;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-right: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #35701d;
    border-color: #35701d;
}

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

.btn-secondary:hover {
    background-color: #c97d27;
    border-color: #c97d27;
}

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

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-warning {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive tables */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Dashboard cards */
.dashboard-card {
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Menu item cards */
.menu-item-card {
    transition: all 0.3s ease;
    height: 100%;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(63, 133, 34, 0.25);
}

/* Print receipt specific styles */
@media print {
    body {
        background-color: #fff;
        padding: 0;
        margin: 0;
    }
    
    .navbar, .container-fluid, .btn {
        display: none;
    }
    
    .receipt {
        box-shadow: none;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px;
    }
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: rgba(63, 133, 34, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(227, 143, 45, 0.1);
    border-left: 4px solid var(--secondary-color);
    color: var(--secondary-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Utility classes */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        margin-bottom: 0.25rem;
    }
}

/* Kanban Board Styles */
.kanban-board {
    margin-top: 20px;
    min-height: 600px;
}

.kanban-column {
    transition: all 0.3s ease;
    min-height: 500px;
}

.kanban-droppable {
    min-height: 450px;
    padding: 10px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.kanban-droppable:hover {
    background-color: rgba(0,0,0,0.02);
}

.kanban-droppable.border-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.kanban-card {
    cursor: move;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.kanban-card.opacity-50 {
    opacity: 0.5;
}

.kanban-card .card-body {
    font-size: 0.875rem;
}

.kanban-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.kanban-card .badge {
    font-size: 0.75rem;
}

/* Scroll styling for kanban columns */
.kanban-droppable::-webkit-scrollbar {
    width: 6px;
}

.kanban-droppable::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.kanban-droppable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Improved dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(63, 133, 34, 0.1);
    color: var(--primary-color);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #35701d;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.stat-card.bg-warning::before {
    background: var(--secondary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}