/* --- Sidebar Styles -------------------------------------------------------------------------------------------------------------------------*/
.sidebar {
    background-color: #343a40;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, padding 0.3s;
}

.sidebar a {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar a:hover {
    color: #f5cfd5 !important;
}

.sidebar-header h3 {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    border-bottom: 1px solid #6c757d;
    padding-bottom: 10px;
    color: #af7c87;
}

.sidebar-header {
    text-align: center;
    border-bottom: 1px solid #6c757d;
    padding: 10px 0;
    position: relative;
  }
  
  .sidebar-logo-svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }

  .sidebar .equisync-svg-text {
    margin-left: 25px;
    margin-top: -15px;
  }
  

.sidebar-menu ul {
    list-style-type: none;
    padding: 0;
}

.sidebar-menu ul li {
    margin-bottom: 15px;
}

.sidebar-menu ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
}

.sidebar-menu ul li a:hover, .sidebar-menu ul li a.active {
    background-color: #34495e;
}

.sidebar-header {
    text-align: center;
    border-bottom: 1px solid #6c757d;
    padding-bottom: 10px;
    position: relative;
}

.sidebar-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sidebar-logo-svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }  

.sidebar-welcome {
    font-style: italic;
}

.sidebar.sidebar-hidden {
    height: 58px;
    overflow: hidden;
    padding: 10px 20px;
}

.sidebar.sidebar-hidden .sidebar-title,
.sidebar.sidebar-hidden .sidebar-menu {
    display: none;
}

.sidebar.sidebar-hidden .sidebar-welcome {
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.sidebar-toggle-caret {
    display: none;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
}

/*--- Dashboard section headers ---*/
#my-horses h2 {
    background-color: #af7c87 !important;
    color: #343a40 !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.35rem;
}

#notifications .card-header {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

#appointments .card-header {
    background-color: #f5cfd5 !important;
    color: #343a40 !important;
}

#management .card-header {
    background-color: #77656d !important;
    color: #ffffff !important;
}

#competitions .card-header {
    background-color: #7d7e80 !important;
    color: #ffffff !important;
}

#ads-announcements .card-header {
    background-color: #d8a7b1 !important;
    color: #343a40 !important;
}

.unstyled-link {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-block !important;
    width: 100% !important;
}

.unstyled-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}


section {
    background-color: #f7f7f7 !important;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Main Content Styles ------------------------------------------------------------------------------------------------------------------- */
.lato-header {
    text-align: center;
    font-weight: bold;
}


.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    transition: margin-left 0.3s;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
}

.card-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    border-radius: 15px 15px 0 0;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.list-group-item {
    border-radius: 8px;
    margin-bottom: 10px;
}

.list-group-item:hover {
    background-color: #f1f1f1;
}

.text-muted {
    color: #6c757d !important;
}

.flex-container {
    display: flex;
    gap: 20px;
}

.full-width-card {
    width: 100%;
}

.management-card, .competition-card, .ad-card, .announcement-card {
    margin-bottom: 20px;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1rem;
    color: #555;
}

.section-wrapper {
    background-color: #fff6e5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
    width: 100%;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- Dashboard Page ---------------------------------------------------------------------------------------------------------------------- */
.dashboard-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.dashboard-section ul {
    list-style: none;
    padding: 0;
}

.dashboard-section li {
    margin-bottom: 5px;
}

.notification-bell {
    font-size: 1.25 rem;
    color: red;
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px red;
    }
    100% {
        text-shadow: 0 0 1.5px red;
    }
}

/* --- Carousel ------------------------------------------------------------------------------------------------------------- */
.index-header {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: #4c3a3a;
    margin-bottom: 0.5rem;
}

.index-subtext {
    font-size: 1.1rem;
    color: #6a5d5d;
    margin-bottom: 2rem;
    font-style: italic;
}

.custom-carousel {
    max-width: 960px;
    margin: 40px auto;
    position: relative;
}

.carousel-img {
    max-height: 340px;
    border-radius: 8px;
}

.carousel-item {
    text-align: center;
  }
  

.carousel-caption-static {
    padding: 20px 15px 10px;
    text-align: center;
}

.carousel-caption-static h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4c3a3a;
    margin-bottom: 0.25rem;
}

.carousel-caption-static p {
    font-size: 1rem;
    color: #5a5a5a;
    margin-bottom: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #af7c87 !important;
    /* border-radius: 50% !important;
    z-index: 10 !important; */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #af7c87 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-indicators.fixed-indicators {
    position: relative;
    margin-top: 10px;
    justify-content: center;
    display: flex;
    gap: 8px;
}

.carousel-indicators.fixed-indicators button {
    background-color: #af7c87 !important;
    width: 16px !important;
    height: 6px !important;
    border-radius: 3px !important;
    border: none !important;
    opacity: 0.7 !important;
}

.fixed-indicators .active {
    background-color: #77656d !important;
    opacity: 1 !important;
}

.modal-header h2 {
    color: #4c3a3a;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-title {
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

/*--- User Profile Syles ---------------------------------------------------------------------------------*/
.profile-form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(230, 198, 205, 0.45);
}

.profile-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #5a4e69;
    font-family: 'Lato', sans-serif;
}

.profile-form-container input,
.profile-form-container textarea,
.profile-form-container select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.profile-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-btn {
    background-color: #af7c87;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.profile-btn:hover {
    background-color: #4a3d59;
}

.cancel-btn {
    border: 1px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
    border-radius: 6px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-outline-dark:hover {
    background-color: #af7c87 !important;
}

.btn-outline-primary {
    color: #2d2d35 !important;
    border-color: #2d2d35 !important;
}

.btn-outline-primary:hover {
    background-color: #af7c87 !important;
}

.errorlist {
  color: #d9534f;
  font-size: 0.95rem;
  margin-top: 5px;
  list-style: none;
  padding-left: 0;
}

.messages-container {
  margin-top: 20px;
  text-align: center;
}

.fade-message {
  background-color: #fbeff2;
  color: #5a2a41;
  padding: 12px 20px;
  border: 1px solid #f3c6d2;
  border-radius: 6px;
  margin: 0 auto 20px;
  max-width: 500px;
  transition: opacity 0.5s ease-out;
}

.fade-out {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.fade-out.fade {
    opacity: 0;
}

.button-group {
    text-align: center;
    margin-top: 30px;
  }
  
  .profile-btn,
  .cancel-link {
    background-color: #77656d !important;
    color: white !important;
    border: none !important;
    padding: 10px 25px !important;
    margin: 10px 5px !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
  }
  
  .profile-btn:hover {
    background-color: #d6bcc5 !important;
  }
  
  .cancel-link {
    background-color: #e4d0d6;
    color: #2d2d35;
    border: 1px solid #ccc;
  }
  
  .cancel-link:hover {
    background-color: #d6bcc5 !important;
  }

/*--- Index Modal Styles ---------------------------------------------------------------------------------*/
.equisync-intro-modal {
    background: #fff0f5;
    border: 2px solid #f3d9e2;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(175, 124, 135, 0.25);
    padding: 20px;
  }
  
  .equisync-intro-header {
    background-color: #af7c87;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    color: white;
    padding: 20px;
    text-align: center;
  }
  
  .equisync-intro-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto;
    color: #2d2d35
  }
  
  .equisync-highlight {
    color: #fce8f0;
    font-weight: 800;
  }
  
  .equisync-intro-body {
    padding: 30px;
    font-size: 1.1rem;
    color: #444;
  }
  
  .equisync-intro-text {
    font-family: 'Lato', sans-serif;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
    color: #333333
  }
  
  .equisync-feature-list {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1rem;
    color: #333;
    max-width: 700px;
  }
  
  .equisync-intro-footer {
    border-top: none;
    padding: 20px;
    text-align: center;
  }
  
  .equisync-btn-intro {
    background-color: #af7c87 !important;
    color: white !important;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
  }
  
  .equisync-btn-intro:hover {
    background-color: #8e5d6e !important;
  }

/*--- Media Queries ---------------------------------------------------------------------------------*/
@media (max-width: 576px) {
    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .profile-btn,
    .cancel-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767.99px) {
    .sidebar-toggle-caret {
        display: block;
    }
}

@media (max-width: 768px) {
    .carousel-caption-static h5 {
        font-size: 1.2rem;
    }

    .carousel-caption-static p {
        font-size: 0.95rem;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    .main-content-expanded {
        margin-left: 0;
    }

    .sidebar {
        height: 100%;
    }

    .sidebar-hidden {
        height: 80px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 10px;
    }

    .sidebar-hidden .sidebar-menu {
        display: none;
    }

    .sidebar-toggle-caret {
        display: block !important;
        cursor: pointer;
        font-size: 22px;
        margin-top: 5px;
        transition: transform 0.3s ease;
    }

    .sidebar-hidden .sidebar-toggle-caret {
        transform: rotate(180deg);
    }
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 260px;
        margin-right: 20px;
    }
}

@media (min-width: 768px) and (max-width: 800px) {
    .list-group-item a span {
      font-size: 0.85rem;
    }
    .list-group-item a strong {
      font-size: 0.9rem;
    }
  }