/* Custom Styles for Check-in/Check-out System */

/* Dropdown Options Styling */
select {
    cursor: pointer;
}

select option {
    background-color: #fef2f2;
    color: #7f1d1d;
    padding: 12px 16px;
    margin: 4px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

select option:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

select option:checked {
    background: linear-gradient(135deg, #5e1914 0%, #8b2621 100%);
    color: white;
    font-weight: 600;
}

.dark select option {
    background-color: #1f2937;
    color: #e5e7eb;
}

.dark select option:hover {
    background-color: #374151;
    color: #f9fafb;
}

.dark select option:checked {
    background: linear-gradient(135deg, #8b2621 0%, #5e1914 100%);
    color: white;
    font-weight: 600;
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Select Dropdown Styling */
select option {
    background-color: #1e293b;
    color: white;
    padding: 10px;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse Animation for Buttons */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
    font-family: 'Prompt', sans-serif !important;
    border-radius: 20px !important;
}

.swal2-title {
    font-family: 'Prompt', sans-serif !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    font-family: 'Prompt', sans-serif !important;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transition: background-color 0.3s ease;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.5rem;
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}