/* AVILLA OKADA HOTEL - Custom Styles */

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

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

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

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Custom button styles */
.btn-primary {
    @apply bg-teal-600 text-white px-6 py-3 rounded-lg hover:bg-teal-700 transition-colors font-semibold;
}

.btn-secondary {
    @apply border-2 border-teal-600 text-teal-600 px-6 py-3 rounded-lg hover:bg-teal-50 transition-colors font-semibold;
}

.btn-success {
    @apply bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition-colors;
}

.btn-danger {
    @apply bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition-colors;
}

.btn-warning {
    @apply bg-yellow-600 text-white px-4 py-2 rounded-lg hover:bg-yellow-700 transition-colors;
}

/* Form styles */
.form-input {
    @apply w-full border border-gray-300 rounded-md pl-10 pr-4 py-3 focus:outline-none focus:ring-2 focus:ring-orange-500;
}

.form-input:focus {
    @apply ring-offset-1;
}

.form-select {
    @apply w-full px-4 py-3 border-2 border-teal-300/60 rounded-xl bg-white/50 backdrop-blur-sm focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-teal-500 focus:bg-white/80 transition-all duration-200 shadow-sm;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent resize-vertical;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden;
}

.card-header {
    @apply px-6 py-4 border-b border-gray-200 bg-gray-50;
}

.card-body {
    @apply p-6;
}

.card-footer {
    @apply px-6 py-4 border-t border-gray-200 bg-gray-50;
}

/* Table styles */
.table {
    @apply w-full text-sm text-left;
}

.table th {
    @apply px-6 py-3 bg-gray-50 font-medium text-gray-900 uppercase tracking-wider border-b;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap border-b border-gray-200;
}

.table-hover tr:hover {
    @apply bg-gray-50;
}

/* Status badges */
.status-badge {
    @apply px-2 py-1 text-xs font-semibold rounded-full;
}

.status-available {
    @apply bg-green-100 text-green-800;
}

.status-occupied {
    @apply bg-red-100 text-red-800;
}

.status-maintenance {
    @apply bg-yellow-100 text-yellow-800;
}

.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-confirmed {
    @apply bg-blue-100 text-blue-800;
}

.status-completed {
    @apply bg-green-100 text-green-800;
}

.status-cancelled {
    @apply bg-red-100 text-red-800;
}

/* Modal styles */
.modal {
    @apply fixed inset-0 z-50 overflow-y-auto;
}

.modal-backdrop {
    @apply fixed inset-0 bg-black bg-opacity-50;
}

.modal-content {
    @apply relative bg-white rounded-lg shadow-xl max-w-md mx-auto mt-20;
}

/* Loading spinner */
.spinner {
    @apply inline-block w-4 h-4 border-2 border-gray-300 border-t-teal-600 rounded-full animate-spin;
}

/* Custom utilities */
.text-balance {
    text-wrap: balance;
}

.prose-custom {
    color: #374151;
}

.prose-custom h1, .prose-custom h2, .prose-custom h3 {
    color: #111827;
    font-weight: 600;
}

.prose-custom a {
    color: #0891b2;
    text-decoration: underline;
}

.prose-custom strong {
    font-weight: 600;
}

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

    .print-break {
        page-break-before: always;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        --bg-color: #1f2937;
        --text-color: #f9fafb;
        --border-color: #374151;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .mobile-stack {
        flex-direction: column;
    }

    .mobile-hide {
        display: none;
    }
}

/* Custom animations for login form */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Backdrop blur support for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.9);
    }
}