footer {
    height: 150px;
    padding: 40px;
    bottom: 0;
    position: relative;
    width: 100%;
}

footer a {
    color: #535c68;
}

footer a:hover {
    color: #ffc107;
    font-weight: bolder;
}

a {
    color: #535c68;
    font-weight: bolder;
    text-decoration: underline;
}


.content-area {
    min-height: 90vh;
    padding: 100px 20px;
}

.content-pane {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
}

table {
    font-size: .8em;
}


h4, h4 a {
    text-decoration: none;
    color: #535c68;
    font-size: 1.1em;
}

.page-header {
    position: absolute;
    margin: 0;
    padding: 20px;
    top: 100px;
    color: white;
    height: 90px;
    background-color: #1e272e;
    width: 100%;
}

.page-header a {
    text-decoration: none;
    color: #ffdd00;
    font-size: .9em;
}

.page-header a.btn {
    text-decoration: none;
    color: #1e272e;
    font-size: .9em;
}

.page-header a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.padding-20 {
    padding: 20px;
}

.gameweek {
    margin: 8px 0;
}

.list-group-item.active {

    background-color: #ffc107;
    color: #1e272e;
    border-color: #ffc107;
}

#schedule .nav-link {
    color: #95a5a6;
    border-bottom: 2px solid #e6e6e6;
    transition: all 0.3s;
    border-radius: 0;
}

#schedule .nav-link.active {
    color: #535c68;
    background-color: transparent;
    border-bottom: 2px solid #ffdd00;
}

a.schedule-item {
    text-decoration: none;
    display: block;
    border-radius: 4px;
}

.schedule-item {
    padding: 10px 15px 15px 0px;
    font-size: .9em;
    color: #1e272e;
    margin: 5px 0;
}

/* Unified hover effect for all schedule items */
.schedule-item:hover,
a.schedule-item:hover {
    background-color: #f8f8f8 !important;
    border-radius: 10px;
    transition: 0.3s all;
}

.schedule-item div[class^="col-"] {
    padding: 5px;
}

.win {
    color: #1abc9c;
}

.draw {
    color: #95a5a6;
}

.lose {
    color: #e74c3c;
}

.schedule .date {
    font-size: .9em;
}

.bg-win {
    background-color: #1abc9c !important;
}

.bg-lose {
    background-color: #e74c3c !important;
}

.text-win {
    color: #1abc9c !important;
    font-weight: bolder;
}

.text-lose {
    color: #e74c3c !important;
    font-weight: normal;
}

hr {
    color: #95a5a6;
}

.score {
    border-radius: 3px;
    padding: 10px 20px;
    color: white;
    font-weight: bolder;
    width: 100%;
    font-size: 1em;
    background-color: rgba(127, 140, 141, 0.3) !important;
    border: 1px solid rgba(127, 140, 141, 1.0) !important;
    color: rgba(127, 140, 141, 1.0);
}

.score.bg-win {
    background-color: rgba(22, 160, 133, 0.3) !important;
    border: 1px solid rgba(22, 160, 133, 1.0) !important;
    color: rgba(22, 160, 133, 1.0);
}

.score.bg-lose {
    background-color: rgba(231, 76, 60, 0.2) !important;
    border: 1px solid rgba(231, 76, 60, 1.0) !important;
    color: rgba(231, 76, 60, 1.0)
}


.score.outline-win {
    background-color: white !important;
    border: 1px solid rgba(22, 160, 133, 1.0) !important;
    color: rgba(22, 160, 133, 1.0);
}

.score.outline-lose {
    background-color: white !important;
    border: 1px solid rgba(231, 76, 60, 1.0) !important;
    color: rgba(231, 76, 60, 1.0)
}

.score.outline-draw {
    background-color: white !important;
    border: 1px solid rgba(127, 140, 141, 1.0) !important;
    color: rgba(127, 140, 141, 1.0)
}

.single {
    padding: 10px 0px;
}

.double {
    margin: 10px 0px;
    padding: 10px 0px;
    background-color: #f8f8f8;
}

.check180 label {
    display: block;
    clear: both;
    color: #aaa;
}

.check180 input {
    margin: 0 auto !important;
}

.form-label {
    color: #95a5a6;
}

.news-item {
    margin-bottom: 5px;
}

.news-item h4 {
    font-weight: bolder;
}

.news-item .news-date {
    color: #95a5a6;
}

#navbar-about .nav-link.active {
    background-color: #1e272e;
    color: white;
    font-weight: bolder;
}

#navbar-about .nav-link {
    color: #1e272e;
}

.alert-danger {
    border: 2px solid #e74c3c;
    background: white;
}

.alert-danger h5 {
    color: #e74c3c;
}

.alert-compact p {
    padding: 0;
    margin: 0;
}

.alert:hover {
    color: #1e272e;
}

.penalty-text {
    padding: 5px;
    color: #e74c3c;
}

.text-red {
    color: #e74c3c;
    font-weight: normal;
    font-size: .8em;
}

.text-penalty {
    color: #e74c3c;
    font-weight: bolder;
}

.text-capitalize {
    text-transform: capitalize;
}

.cup {
    padding: 6px 12px;
    background-color: white;
    border-radius: 5px;
    margin: 2px;
}

.cup a {
    margin: 10px 0;
    font-weight: normal;
    color: #2f3640;
    transition: 0.3s all;
    font-size: 1.2em;
}

.cup a:hover {
    font-weight: normal;
    color: #95a5a6;
}

.cup span {
    color: #ffc107;
    display: block;
    font-size: .8em;
    font-weight: bolder;
}

.cup.selected a {
    font-weight: bold;
}

.round-info {
    padding-top: 10px;
}

.player-subscription {
    padding: 7px;
    margin: 5px;
}

.player-subscription.active-row {
    background-color: #f5f5f5;
    padding: 7px;
    border-radius: 5px;
    margin: 5px;
}

#header-image {
    padding: 20px
}


.home-header {
    border-radius: 10px;
    background-color: #f8f8f8 !important;
    background: url('../images/hero-image.svg') no-repeat right center;
    background-size: 60vh;
    min-height: 300px;
}

.home-header div {
    padding: 50px;
}

@media (max-width: 768px) {
    .home-header {
        border-radius: 10px;
        background-color: #f8f8f8 !important;
        background: none;
        height: auto;
    }
}

.tournament-bracket {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    overflow-x: auto;
    padding: 20px;
}

.round {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.round-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.match {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    overflow: hidden;
    width: 225px;
    border-radius: 6px;
}

.match-date {
    font-size: .8em;
    color: #95a5a6;
}

.add-match {
    padding: 45px 27px;
    text-align: center;
    font-weight: bolder;
    background-color: whitesmoke;
    cursor: pointer;
    transition: 0.3s all;
}

.add-match:hover {
    background-color: #ffdd00;
    color: #2f3640;
}

.border-light {
    border: 1px solid #bdc3c7 !important;
    border-radius: 4px;
}

.player-container {
    padding: 10px;
    background-color: whitesmoke;
    border-radius: 6px;
    margin: 5px;
}

.player {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    background-color: white;
    height: 40px;
}

.player-double {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.player-name {
    font-size: .8em;
    max-width: 70%;
    overflow-x: hidden;
    margin-right: 3px;
}

.player:last-child {
    border-bottom: none;
}

.cup-match-view-link {
    padding: 3px 10px;
    text-align: left;
    align-content: start;
    font-size: .8em;
    text-decoration: underline;
    cursor: pointer;
    color: grey;
}

.cup-match-view-link:hover {
    font-weight: bolder;
    color: grey;
}

.result {
    margin-left: auto;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.player-id {
    font-size: .8em;
    color: #535c68;
    padding: 0 4px;
}

.player-wrapper {
    display: flex;
    align-items: center;
}

.match-win {
    background-color: #d1e7dd;
    font-weight: bolder;
}

.match-lose {
    background-color: #f8d7da;
}

.final-results {
    border: 1px solid #dc3545;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}

.final-title {
    text-align: center;
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}

.signature {
    text-align: right;
    font-style: italic;
    margin-top: 30px;
}

.search-container {
    position: relative;
    width: 100%;
}

.match-score {
    padding: 10.5px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.dropdown-menu {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    background-color: #fff;
    padding: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8f9fa;
}

.match .badge {
    font-size: .6em;
}

.no-results {
    padding: 8px 16px;
    color: #6c757d;
    font-style: italic;
}

/* Make scrollbars prettier */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.font-weight-bolder {
    font-weight: bolder;
}

.font-weight-lighter {
    font-weight: lighter;
}

.nav-search {
    cursor: pointer;
}

.search-result {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.search-result:hover {
    background-color: whitesmoke;
}

.search-result img {
    margin-right: 5px;
}

/* Gameweek Carousel Styles */
.gameweek-carousel-container {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 6px;
    padding: 15px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gameweek-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.gameweek-carousel::-webkit-scrollbar {
    height: 4px;
}

.gameweek-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.gameweek-carousel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.gameweek-nav-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 70px;
    border: 2px solid transparent;
}

.gameweek-nav-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.gameweek-nav-item.active {
    background-color: #ffdd00;
    border-color: #1e272e;
    color: #1e272e;
    font-weight: bold;
}

.gameweek-title {
    font-size: 0.8em;
    font-weight: bold;
    color: #535c68;
}

.gameweek-nav-item.active .gameweek-title {
    color: #1e272e;
}

.gameweek-date {
    font-size: 0.7em;
    color: #95a5a6;
    margin-top: 2px;
}

.gameweek-nav-item.active .gameweek-date {
    color: #1e272e;
}

/* Schedule Content with Fixed Height */
.schedule-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.schedule-content::-webkit-scrollbar {
    width: 6px;
}

.schedule-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schedule-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.schedule-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.page-content {
    margin-top: 110px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-content {
        max-height: calc(100vh - 250px);
    }

    .gameweek-nav-item {
        min-width: 60px;
        padding: 6px 8px;
    }

    .gameweek-title {
        font-size: 0.75em;
    }

    .gameweek-date {
        font-size: 0.65em;
    }

    .page-header {
        height: 145px !important;
    }

    .page-content {
        margin-top: 160px;
    }
}