/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-width: 250px;
    z-index: 1000; /* Ensure sidebar is on top */
    overflow-x: hidden;
    border-right: 1px solid #e7e7e7;
}

.sidebar_link:link,
.sidebar_link:visited,
.sidebar_link:hover,
.sidebar_link:active {
    color: #ffffff;
    text-decoration: none;
    display: block;
}


.sidebar_link:hover {
    color: #ebeaea;
}

/* Adjust main-content margin to account for the fixed sidebar */
.main-content {
    margin-left: 250px; /* Same as the sidebar width */
    padding: 20px;
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    .sidebar {
        max-width: 113px; /* Reduce sidebar width */
    }

    .main-content {
        margin-left: 113px; /* Adjust margin-left for smaller screens */
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h2 {
    padding-bottom: 10px;
    margin-top: 20px;
}

.container {
    margin: 0 auto;
}

.sticky {
    position: sticky;
    top: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 0px;
}

.nav-link.active {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-left: 5px solid #dc6f29;
    border-radius: 0px;
    margin-left: 5px;
}

.nav-link.active svg {
    fill: white; /* Change the fill color to white when active */
}

.nav-link:hover svg {
    fill: rgb(255, 255, 255); /* Change to white on hover */
}

.nav-link.active:hover svg {
    fill: #dc6f29; 
}

.profile-table {
    font-size: 11pt;
}

.profile-table td {
    padding: 0px 5px;
}

.general-table td {
    padding: 5px 20px;
}

.team-manager {
    font-weight: bold;
    background-color: #f0f8ff;
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .bi {
    transition: .3s transform ease-in-out;
}

.card-header .collapsed .bi {
    transform: rotate(90deg);
}

.timeline {
    width: 80px;
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}

.event-card {
    position: absolute;
    width: 100%;
    padding: 5px;
}

.timetable-column {
    position: relative;
}

.location-header {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background-color: #f8f9fa; /* Light gray background for the header */
    border-bottom: 1px solid #dee2e6; /* Optional border for separation */
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
}

.timeline-card {
    height: 100%;
}

.bg-light-green {
    background-color: #e6f4ea; /* A light green shade */
}

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* Change background color to match your theme */
    z-index: 1;
    border-bottom: 2px solid #dee2e6;
}

.border-warning {
    border: 2px solid orange; /* Adjust thickness and color */
}

/* START -- CSS for Task List View */
.badge {
    background-color: rgb(221 100 45);
}

.text-right {
    text-align: right;
}

.row-striped:nth-of-type(odd){
    background-color: #efefef;
    border-left: 4px #000000 solid;
}

.row-striped:nth-of-type(even){
    background-color: #ffffff;
    border-left: 4px #efefef solid;
}

.row-striped {
    padding: 10px 0 10px 0;
}
/* END -- CSS for Task List View */

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgb(221 100 45);
    --bs-btn-border-color: rgb(221 100 45);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(228, 125, 78);
    --bs-btn-hover-border-color: rgb(228, 125, 78);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(228, 125, 78);
    --bs-btn-active-border-color: rgb(228, 125, 78);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: grey;
    --bs-btn-disabled-border-color: grey
}

.btn-secondary{
    --bs-btn-color: #fff;
    --bs-btn-bg: rgb(9, 177, 98);
    --bs-btn-border-color: rgb(7, 129, 72);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(7, 129, 72);
    --bs-btn-hover-border-color: rgb(7, 129, 72);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(9, 177, 98);
    --bs-btn-active-border-color: rgb(9, 177, 98);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: grey;
    --bs-btn-disabled-border-color: grey;
}

.svg-icon {
    transition: fill 0.3s;
    fill: white;
}

.svg-icon:hover{
    fill: rgb(228, 125, 78);
}

#dropdownUser1:hover span{
    text-decoration: underline;
}

#dropdownUser1:hover svg{
    fill: rgb(228, 125, 78);
    transition: fill 0.3s;
}

time.icon
{
  font-size: 0.8em; /* Reduced from 1em to 0.8em */
  display: block;
  position: relative;
  width: 60%;
  aspect-ratio: 1;
  background-color: #fff;
  border-radius: 0.6em;
  box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
  overflow: hidden;
    container-type: inline-size;
}

time.icon *
{
  display: block;
  width: 100%;
  font-weight: bold;
  font-style: normal;
  text-align: center;
}

time.icon strong
{
  position: absolute;
  top: 0;
    height: 30%;
  padding: 0;
  font-size: 20cqw;
  color: #fff;
  background-color: rgb(228, 125, 78);
  border-bottom: 1px dashed rgb(208, 116, 74);
  box-shadow: 0 2px 0 rgb(228, 125, 78);
}

time.icon em
{
    position: absolute;
    bottom: 0em;
    font-size: 20cqw;
    color: rgb(228, 125, 78);
}

time.icon span
{
  width: 100%;
  font-size: 35cqw;
  letter-spacing: -0.05em;
  padding-top: 30%;

  color: #2f2f2f;
}

.td-key{
    font-weight: bold;
    font-size: 11pt;
    /* color: rgb(228, 125, 78); */
}

.logo{
    width: 100%;
    padding: 15px;
    max-width: 150px;
}

.organization_google_maps_link{
    font-size: 10pt;
    background-color: #7e7ef6;
}

.organization_button{
    min-height: 32px;
}

.organization {
    font-size: 10pt;
    text-align: center;
}

.organization p{
    font-size: 10pt;
    margin-right: 20px;
    margin-left: 20px;
}

.organization dl{
    font-size: 10pt;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.organization_season {
    border-bottom: 2px solid grey;
    border-radius: 13px;
    padding-top: 10px;
}

.organization_custom-hr {
    border: 1px solid #4d4d4d;
    margin: 20px 0;
}


.update-matches {
    font-size: 10pt;
}

.update-matches-info {
    font-style: italic;
    color: rgb(228, 125, 78);
}

.team-name {
    font-weight: bold;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.accordion-button {
    background-color: lightgray;
    font-weight: bold;
    box-shadow: none;
}

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

.accordion-button:not(.collapsed) {
    background-color: #626262;
    color: white;
    box-shadow: none;
}

.accordion-body {
    padding: 0.5rem 1rem;
}

.list-group-item {
    padding: 0.5rem 1rem;
}

.accordion {
    padding: 0.5rem 1rem;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Unread notifications - standout style */
.notification:not(.handled) {
    background: linear-gradient(135deg, #E0F7FA, #BBDEFB);
    border-left: 4px solid #007bff;
    color: #333;
}

/* Read notifications - subtle style */
.notification.handled {
    background: linear-gradient(135deg, #ECEFF1, #CFD8DC);
    border-left: 4px solid #B0BEC5;
    color: #6c757d;
    opacity: 0.8;
    transform: scale(0.98);
}

/* Text styling for notification message */
.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.notification-link {
    text-decoration: none;
    color: #007bff;
}

.comment-form {
    margin-top: 30px;
}

.comment-form h5 {
    font-weight: bold;
    color: #333;
}

.message a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.message a:hover {
    text-decoration: underline;
}


.mark-read-btn:hover {
    background-color: #004094;
}


/* Optional subtle animation on hover */
.notification:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mark-read-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
    align-self: flex-end; /* Aligns button to the right */
}

.event-link {
    text-decoration: none;
    color: inherit;
}
.event-row:hover {
    background-color: #f9f9f9;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid rgb(221, 100, 45); 
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
} 
.event-row {
    min-height: 75px;
    height: 75px;
    margin-bottom: 0.4rem;
    background-color: #efefef;
    border-left: 4px #212529 solid;
    transition: border-left-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.event-row:hover {
    background-color: #f9f9f9;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid rgb(221, 100, 45); 
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
    transform: scale(1.01);
}
.event-type-label {
    height: 100%;
    max-height: 75px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: #212529;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 0.2em 0 0 0.2em;
    padding: 0.3em 0.1em;
    margin: 0; /* Remove margin */
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    border: 2px solid #212529;
    height: 100%; /* Match parent height */
}
.event-type-label:hover {
    background: rgb(221, 100, 45);
    color: #fff;
    border-color: rgb(221, 100, 45);
}
.event-row:hover .event-type-label {
    background: rgb(221, 100, 45);
    color: #fff;
    border-color: rgb(221, 100, 45);
}

.timeline-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.organization-name {
    color: #f8f9fa; /* Light color for visibility on dark background */
    font-size: 0.9rem; /* Slightly smaller than main nav items */
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    text-transform: uppercase; /* Adds a subtle emphasis */
    opacity: 0.85; /* Slightly dim for visual hierarchy */
}

.placeholder-item {
    height: 40px; /* Adjust height to match other <li> items */
    opacity: 0; /* Makes it invisible */
    pointer-events: none; /* Prevents interaction */
}

.kairos-dark-bg {
    background-color: #212529 !important;
}
.kairos-orange-badge {
    background-color: #dd642d !important;
    color: #fff !important;
    border: none !important;
}
.kairos-section-title {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #212529 !important;
}
.kairos-section-title i {
    color: #212529 !important;
}
.kairos-dark-link {
    color: #212529 !important;
    text-decoration: none;
    font-weight: 600;
}
.kairos-dark-link:hover {
    text-decoration: underline;
    color: #212529 !important;
}
.kairos-orange-arrow {
    color: #dd642d !important;
}
.kairos-member-icon {
    color: #dd642d !important;
}
.kairos-match-row {
    transition: background 0.2s;
    cursor: pointer;
}
.kairos-match-row:hover {
    background: #f5f5f5;
}
.kairos-member-row {
    transition: background 0.2s;
    cursor: pointer;
}
.kairos-member-row:hover {
    background: #f5f5f5;
}
.kairos-field-badge {
    float: right;
    margin-left: 1rem;
    margin-right: 0;
    background: #fff !important;
    color: #212529 !important;
    border: 1px solid #212529 !important;
    font-weight: 500;
    font-family: inherit;
}
.kairos-field-badge strong {
    font-weight: 700;
}
.kairos-date {
    font-size: 0.95em;
    font-style: italic;
}
.text-end {
    text-align: right !important;
}
.badge-volunteer {
    background-color: #d4fc79 !important;
    color: #212529 !important;
    font-weight: 600;
}
.kairos-member-row:hover .kairos-dark-link {
    text-decoration: none !important;
}
.badge-volunteer {
    background-color: #d4fc79 !important;
    color: #212529 !important;
    font-weight: 600;
}
