/* Custom styles for enhanced animations and professional styling */

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Enhanced hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-hover {
    position: relative;
    z-index: 1;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Ensure buttons inside cards are always clickable */
.card-hover button,
.card-hover a {
    position: relative;
    z-index: 20;
    pointer-events: auto !important;
}

.btn-gradient {
    background: linear-gradient(45deg, #D4AF37, #F4E4BC);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gradient-bg {
    background: linear-gradient(135deg, #D4AF37 0%, #8B4513 100%);
}

.hero-bg {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #D4AF37, #8B4513);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #B8860B, #654321);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for important elements */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}
/* Sticky footer flexbox layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
/* Modal animations */
.animate-fade-in {
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-in-up {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal specific styles */
.modal-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Ensure modal content is above other elements */
.modal-content {
    position: relative;
    z-index: 1000;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* Loading spinner for modal */
.modal-spinner {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 3px solid #D4AF37;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Enhanced modal close button */
.modal-close-btn {
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Modal form elements styling */
.modal-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-value {
    color: #6B7280;
    line-height: 1.5;
}

/* Modal action buttons */
.modal-actions {
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.modal-btn-primary {
    background: linear-gradient(45deg, #D4AF37, #F4E4BC);
    color: #1F2937;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.modal-btn-secondary {
    background: #F3F4F6;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-secondary:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
}

/* Modal grid layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modal description text */
.modal-description {
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #D4AF37;
    white-space: pre-line;
}

/* Modal error state */
.modal-error {
    text-align: center;
    padding: 2rem;
}

.modal-error-icon {
    color: #EF4444;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-error-title {
    color: #DC2626;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-error-text {
    color: #6B7280;
}
}
