/* Custom styles for Interview Slot Booking Application */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Date Card Styles */
.date-card {
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
    border-color: #0056b3;
    background-color: #e7f3ff;
}

/* Slot Card Styles */
.slot-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 10px;
}

.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Available slot - Green */
.slot-available {
    border-color: #28a745;
    background-color: #f8fff9;
}

.slot-available:hover {
    background-color: #e6ffe8;
    border-color: #1e7e34;
}

/* Almost full slot - Yellow/Warning */
.slot-almost-full {
    border-color: #ffc107;
    background-color: #fffef5;
}

.slot-almost-full:hover {
    background-color: #fff9e6;
    border-color: #e0a800;
}

/* Full slot - Gray */
.slot-full {
    border-color: #6c757d;
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.slot-full:hover {
    transform: none;
    box-shadow: none;
}

/* Selected slot */
.slot-card.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    border-width: 3px;
}

/* Slots grid */
#slots-grid {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* Custom scrollbar for slots grid */
#slots-grid::-webkit-scrollbar {
    width: 8px;
}

#slots-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#slots-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#slots-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Card shadows */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Jumbotron styles (for index page) */
.jumbotron {
    background-color: #f8f9fa;
}

/* Admin dashboard stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    transition: transform 0.2s;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-5px);
}

/* Make table responsive on mobile */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .slot-card {
        font-size: 0.875rem;
    }
}

/* Loading spinner */
#loading-spinner {
    padding: 40px;
}

/* Button styles */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.125rem;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
}

/* Modal improvements */
.modal-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stats progress bars */
.progress {
    height: 25px;
}

.progress-bar {
    font-size: 0.875rem;
    line-height: 25px;
}

/* Pre-formatted code blocks */
pre {
    font-size: 0.875rem;
}
