/**
 * Custom CSS for Room Booking System
 * This file contains additional styles not covered by Tailwind CSS
 */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #600000;
}

/* Custom focus styles */
.custom-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom gradient button hover effect */
.gradient-btn-hover:hover {
    background-size: 200% 100%;
    background-position: right center;
    transition: all 0.5s ease-in-out;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Custom maroon color variations */
.bg-maroon-light {
    background-color: #a00000;
}

.bg-maroon-dark {
    background-color: #600000;
}

.text-maroon-light {
    color: #a00000;
}

.text-maroon-dark {
    color: #600000;
}

/* Admin navigation tabs */
.admin-tab {
    background-color: #f3f4f6;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    cursor: pointer;
    display: inline-block;
    text-decoration: none !important;
}

.admin-tab:hover {
    background-color: #e5e7eb;
}

.admin-tab-active {
    background-color: #800000;
    color: white !important;
    font-weight: 500;
}

.admin-tab-active:hover {
    background-color: #700000;
}

/* Custom form validation styles */
.input-error {
    border-color: #f56565;
}

.input-success {
    border-color: #48bb78;
}

.error-message {
    color: #f56565;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Custom tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Time slot hover styles */
.time-slot {
    transition: all 0.2s ease-in-out;
}

.time-slot:hover {
    transform: scale(1.05);
    background-color: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
}

.time-slot.selected {
    border-width: 2px;
    transform: scale(1.05);
    background-color: var(--accent-color);
    color: white;
}
