﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
}

.scrollable {
    overflow: auto;
}

.blueSubmit {
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 12px 24px;
    border: 0;
    color: white;
    background: #3658c7;
    line-height: 1.15;
    font-size: 16px;
    
}

.blueSubmit:hover {
    transition: all .1s ease;
    background: #14255c;
}

.datepicker {
    width: 100% !important;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    height: 90%
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.footer{
    height: 30px;
}

.tabs {
    width: 100%;
    /*max-width: 600px;*/
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-buttons button {
    flex: 1;
    padding: 15px 20px;
    background: #f9f9f9;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

    .tab-buttons button:last-child {
        border-right: none;
    }

    .tab-buttons button.active {
        background: #3658c7;
        color: #fff;
    }

.tab-content {
    padding: 20px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #3658c7;
    color: white;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar ul li:hover {
    background-color: #14255c
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .nav-link {
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover {
    background-color: #14255c;
}

.sidebar .nav-link i {
    font-size: 20px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.main-content {
    padding: 20px;
    flex: 1;
    transition: margin-left 0.3s ease;
}

.main-content.collapsed {
    margin-left: 80px;
}

.toggle-btn {
    background-color: #14255c;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn:hover {
    background-color: #14255c;
}

.toggle-btn i {
    font-size: 20px;
}

.menu-item {
    /*background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;*/
    transition: background-color 0.3s ease;
}

/* Hover effect for the menu button */
.menu-item:hover {
    background-color: #0056b3;
}

/* Styling for the dropdown container */
.dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Styling for each dropdown link */
.dropdown a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

    /* Hover effect for each dropdown link */
    .dropdown a:hover {
        background-color: #f0f0f0;
    }

    /* Last item without bottom border */
    .dropdown a:last-child {
        border-bottom: none;
    }

/* Show the dropdown on hover */
.menu:hover .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.navy-outline-button {
    background-color: white;
    border: 2px solid #14255c; /* Dark blue outline */
    color: #14255c; /* Text color matching the border */
    padding: 8px 20px;
    font-size: .8em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Button Hover Effect */
.navy-outline-button:hover {
    background-color: #14255c;
    color: white;
    border-color: #14255c;
}

/* Button Focus Effect */
.navy-outline-button:focus {
    outline: none;
}

.highlightResult {
    background-color: orange;
}

.accordion-button:not(.collapsed) {
    color: whitesmoke;
    background-color: #14255c;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Floating div styles */
.user-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto; /* Make width dynamic based on content */
    transition: width 0.4s ease-out, padding 0.4s ease-out; /* Smoother expansion */
    overflow: hidden; /* Hide overflow initially */
}

/* Username styles */
.user-status .username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap; /* Prevent wrapping */
}

/* Logout button styles (hidden initially) */
.user-status .logout-btn {
    background-color:#3658c7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Disable click when hidden */
    transition: opacity 0.4s ease-out, pointer-events 0.4s ease-out; /* Smooth fade-in */
    margin-left: 10px; /* Add space between text and button */
}

/* On hover, expand the div and show the logout button */
.user-status:hover {
    width: 250px; /* Expand the div to fit the button */
    padding-right: 30px; /* Add extra space to the right when expanded */
}

.user-status:hover .logout-btn {
    opacity: 1; /* Make the logout button visible */
    pointer-events: all; /* Enable click */
}

.user-status .logout-btn:hover {
    background: #14255c;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .user-status {
        width: auto; /* Smaller width for mobile */
    }

    .user-status:hover {
        width: 180px; /* Expand slightly more on mobile */
    }
}

.spinner {
    border: 4px solid #f3f3f3; /* Light gray background */
    border-top: 4px solid #3658c7; /* Blue spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px 0;
    display: none;
    justify-content: center;
    align-items: center;
}

/* Animation for the spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.error{
    color:red;
}

#reservationSpinnerContainer{
    max-height: 300px;
    overflow-y: auto;
}

.logout-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: width 0.3s ease, padding 0.3s ease;
    width: 48px;
    height: 48px;
    padding: 0;
}

.logout-wrapper:hover {
    width: 160px;
    padding: 0 12px;
    height: 60px;
}

.logout-icon {
    color: #3658c7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.logout-button {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    margin-left: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.logout-wrapper:hover .logout-button {
    display: inline;
    opacity: 1;
    background: #14255c;
    color: white;
}