/* Importar Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Estilos Globales */
:root {
    --primary-color: #8BC34A;
    --secondary-color: #2E7D32;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --mestra-green: #8BC34A;
    --mestra-dark-green: #2E7D32;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    background-color: #f5f7fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #8BC34A 0%, #2E7D32 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 48px;
}

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

.login-header i {
    font-size: 4rem;
    color: var(--mestra-green);
    margin-bottom: 15px;
}

.login-header h2 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.login-header p {
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

/* Navbar */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

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

.navbar-text {
    font-size: 0.9rem;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 8px;
}

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

.dashboard-card h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

.dashboard-card h6 {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.dashboard-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.quick-access-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

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

.quick-access-card .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
    border-radius: 12px;
}

.quick-access-card:hover .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

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

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 8px 0 0 8px;
}

.btn-group .btn:last-child {
    border-radius: 0 8px 8px 0;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 15px;
}

/* Tables Canvas */
.tables-canvas {
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Product Cards */
.product-card {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
    transform: scale(1.02);
}

/* Order Items */
#orderItems {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 14px;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #dee2e6;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tables */
table {
    background: white;
}

.table thead {
    background-color: var(--dark-color);
    color: white;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .dashboard-icon {
        font-size: 2rem;
    }
    
    .table-element {
        font-size: 0.8rem;
    }
    
    .navbar-text {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal-footer {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Status Colors */
.status-available {
    background-color: var(--success-color);
    color: white;
}

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

.status-reserved {
    background-color: var(--warning-color);
    color: black;
}

/* Order Status Colors */
.order-pending {
    border-left: 5px solid var(--warning-color);
}

.order-preparing {
    border-left: 5px solid var(--info-color);
}

.order-ready {
    border-left: 5px solid var(--success-color);
}

.order-served {
    border-left: 5px solid #6c757d;
}

.order-paid {
    border-left: 5px solid var(--dark-color);
}

/* Utility Classes */
.pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.box-shadow-lg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover Effects */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty States */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
