/* Main styling for the restaurant reservation system */

/* General styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.main-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Navbar styling */
.navbar {
    background-color: #900000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8d7da;
    color: #900000;
}

/* Footer styling */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 0 20px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
}

.footer-links a:hover {
    color: #dc3545;
}

.copyright {
    margin-top: 20px;
    color: #adb5bd;
}

/* Buttons and links */
.btn-primary {
    background-color: #900000;
    border-color: #900000;
}

.btn-primary:hover {
    background-color: #700000;
    border-color: #700000;
}

.btn-outline-primary {
    color: #900000;
    border-color: #900000;
}

.btn-outline-primary:hover {
    background-color: #900000;
    color: white;
}

a {
    color: #900000;
}

a:hover {
    color: #700000;
    text-decoration: none;
}

/* Card styling */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Form elements */
.form-control:focus {
    border-color: #900000;
    box-shadow: 0 0 0 0.2rem rgba(144, 0, 0, 0.25);
}

/* Custom styling classes */
.text-maroon {
    color: #900000;
}

.bg-maroon {
    background-color: #900000;
    color: white;
}

/* Address styling in footer */
address {
    font-style: normal;
    line-height: 1.8;
}

address i {
    width: 20px;
    margin-right: 5px;
    text-align: center;
}

.dashboard-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.card-body .btn {
    margin-top: 10px;
}

.btn-maroon {
    background-color: #800000;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-maroon:hover {
    background-color: #a00000;
    color: #fff;
}

.card-title {
    color: #800000;
}

/* Sidebar Panel Full Height Fix */
.sidebar-panel {
    background-color: #c7c7c7; 
    color: #333;
    height: 100%;
    min-height: 100vh;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 12px 20px;
    color: #800000;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-link:hover {
    background-color: #e6e6e6;
    transform: translateX(5px);
    text-decoration: none;
}



/* Header (navbar) styling */
.navbar {
    background-color: #800000;
}

/* Footer styling */
.footer {
    background-color: #800000;
    color: white;
}

.footer h5 {
    color: #fff;
}

/* Fix container padding when sidebar is used */
.dashboard-content {
    padding: 30px;
    width: 100%;
}

html, body {
    height: 100%;
    margin: 0;
}

.reservation-hero {
    background-image: url('../img/dining-banner.jpg'); /* Adjust path if needed */
    height: 100vh;
    background-attachment: fixed; /* This is what makes it parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(128, 0, 0, 0.5); /* maroon overlay */
}


.reservation-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 1); /* adjust darkness */
    z-index: 0;
}

.reservation-container {
    position: relative;
    z-index: 1;
}

.reservation-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 700px;
}

.text-maroon {
    color: #800000;
}
.border-left-maroon {
    border-left: 5px solid #800000;
}

.thead-maroon {
    background-color: #800000;
    color: white;
}

.sidebar-panel {
    position: sticky;
    top: 70px; /* Adjust if navbar is taller */
    background-color: lightgray;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1rem;
    border-right: 1px solid #dee2e6;
}

/* Larger checkbox styling */
.form-check-input#use_profile_contact {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
}

.form-check-label[for="use_profile_contact"] {
    font-size: 1rem;
    padding-left: 0.25rem;
    vertical-align: middle;
}

/* Better alignment in the input group */
.input-group-text .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}


.img-thumbnail {
    object-fit: cover;
    width: 150px;
    height: 150px;
}

.custom-file-label::after {
    content: "Browse";
}


.user-profile-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    transition: transform 0.2s;
}

.user-profile-thumbnail:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.modal-body img {
    max-height: 70vh;
    max-width: 100%;
    border-radius: 5px;
}
