/* RestauraPro Admin Common Styles */

/* Navigation active state */
.nav-item.active {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease-out;
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-active {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #10b981;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #6b7280;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-draft {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #f59e0b;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Mobile menu */
#mobileMenu {
    transition: max-height 0.3s ease;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Buttons */
.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

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

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: #6b7280;
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-green {
    background-color: #d1fae5;
    color: #10b981;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #f59e0b;
}

.badge-blue {
    background-color: #dbeafe;
    color: #3b82f6;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-after: always;
    }
}