/* General Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}

footer {
    background-color: #f1f1f1;
}

footer a {
    color: #333;
}

footer a:hover {
    color: #007bff;
    text-decoration: underline;
}


/* Navbar styling */


.navbar-light .navbar-nav .nav-link:hover {
    color: #1159a5;
}

.navbar {
    background-color: #e9e1e1;
    border-bottom: 1px solid #eee;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1e1e !important;
}

.navbar-nav .nav-link {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.3rem 1rem;
    transition: color 0.3s ease;
}


.navbar .dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar .dropdown-item:hover {
    background-color: #dfe4e9;
}

.dropdown-menu {
    background-color: #f8f9fa;
}

/* Index.html styles */

h2, h5 {
    font-weight: bold;
}

/* Hero Section */
.hero-header {
    background-image: url('/static/images/hero-background.jpg');
    background-color: #000;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.hero-header h1 {
    font-size: 4rem;
    font-weight: 700;
}

.hero-header p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Program Cards */
.card {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Call to Action Section */
.cta-section {
    background: #f57c00;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.cta-section .btn {
    font-size: 1.2rem;
    border-radius: 30px;
}

/* Section Titles */
h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.blockquote-footer {
    font-size: 1rem;
    font-style: italic;
    color: #6c757d;
    margin-top: 7px;
    padding-top: 7px;
}

.blockquote {
    background-color: #f8f9fa;
    height: 180px;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Section Backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Icons */
.fas {
    transition: color 0.3s ease;
}

.fas:hover {
    color: #f57c00;
}

.carousel-image-wrapper {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.carousel-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* View details page styling */
img {
    object-fit: cover;
    max-height: 300px;
}

.card {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.rounded-circle {
    margin-top: 50px;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Reviews section styles */
.reviews-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-section h4 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Review card styles */
.review-card {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-card strong {
    font-size: 16px;
    color: #333;
}

.review-card p {
    font-size: 14px;
    color: #555;
}

.review-card .rating {
    font-size: 18px;
    color: #ffb400;
}

.review-card .actions {
    margin-top: 10px;
}


.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

.star-rating input:checked ~ label {
    color: gold;
}

.star-rating input:hover ~ label {
    color: #ffcc00;
}

/* Button styles */
.btn-review {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-review:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Edit/Delete button styles */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-warning {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
}

.btn-warning:hover {
    background-color: #ec971f;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d9534f;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* Leave a Review / Edit Review Button */
.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* General container padding */
.container {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Instructor list: card layout */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Instructor list image styling */
.card-img-top {
    height: 300px;
    object-fit: fill;
    background-color: #f8f9fa;
}

/* Instructor detail image */
.img-fluid.rounded-circle {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid #f0f0f0;
}

/* Stars (FontAwesome) */
.fa-star,
.fa-star-o {
    color: #f5c518;
    font-size: 1.2rem;
    margin-right: 2px;
}

/* Dashboard Page */
.card {
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}
.dashboard-icon {
    font-size: 2.5rem;
}

/* Pricing Page */
.card.pricing-card {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease-in-out;
}
.card.pricing-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.featured-plan {
    border-color: #ffc107;
    background-color: #fff9e6;
}

.form-control {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Error messages */
.text-danger {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #d9534f;
}

/* Submit button */
.btn-primary {
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Success alert */
.alert-success {
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Toast Messages */
.toast-top-center {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
}

.toast {
    min-width: 250px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    background-color: #28a745; /* green */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.toast .btn-close {
    color: #fff;
    opacity: 0.9;
}

/* Account Profile */
.profile-details p {
    font-size: 1rem;
    margin: 10px 0;
    padding: 10px;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.profile-details strong {
    display: inline-block;
    width: 180px;
    color: #333;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.actions .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.actions .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.actions .btn-primary:hover {
    background-color: #0056b3;
}

.actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.actions .btn-secondary:hover {
    background-color: #5a6268;
}


/* Contact Form styling */
#contact-form {
    background-color: #000;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-form .form-control {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

#contact-form .form-label {
    color: #000;
}

#contact-form .btn-primary {
    background-color: #0056b3;
    border: none;
}


/* My Bookings page */
.my-bookings-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.booking-list {
  margin-top: 30px;
}

.booking-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-header h3 {
  font-size: 1.5rem;
  color: #2e3a59;
}

.booking-status {
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
}

.booking-status.paid {
  background-color: #4caf50;
  color: white;
}

.booking-status.pending {
  background-color: #ff9800;
  color: white;
}

.booking-item p {
  font-size: 1rem;
  color: #555;
  margin: 5px 0;
}

.booking-actions {
  margin-top: 15px;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  margin: 5px;
  display: inline-block;
  font-size: 1rem;
  text-align: center;
}

.btn-details {
  background-color: #3f51b5;
  color: white;
}

.btn-details:hover {
  background-color: #303f9f;
}

.btn-pay {
  background-color: #ff5722;
  color: white;
}

.btn-pay:hover {
  background-color: #d84315;
}

.no-bookings-message {
  font-size: 1.2rem;
  color: #888;
  text-align: center;
  margin-top: 50px;
}

/* Login, Logout, Signup pages */
.auth-container {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  background: #fff;
  text-align: center;
}

.auth-title {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
}

.auth-form {
  text-align: left;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.auth-button {
  background-color: #28a745;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.auth-button.danger {
  background-color: #dc3545;
}

.auth-link {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Booking success page */
.success-card {
    border-left: 6px solid #28a745;
    background-color: #f9fffa;
    border-radius: 12px;
    max-width: 600px;
    margin: auto;
}

.card-title {
    font-weight: bold;
}

.list-group-item {
    background-color: transparent;
    border: none;
    padding-left: 0;
}

.plan-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border-radius: 1rem;
    }

    .plan-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    }

    .popular-card {
        border-width: 2px;
    }

    .elite-card {
        background: linear-gradient(135deg, #fff5f5, #ffecec);
    }

    .pricing-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    }

/* Position the Most Popular badge */
.popular-card {
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.popular-badge .badge {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .img-fluid.rounded-circle {
        margin: 0 auto;
        display: block;
    }
}
