:root {
    --bs-font-sans-serif: Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, system-ui, -apple-system, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: #000000;
    --bs-body-color: #ffffff;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

@media (min-width: 1360px) {
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/images/left.png'), url('/images/right.png');
        background-position: left top, right top;
        background-repeat: no-repeat, no-repeat;
        background-size: auto 100%;
        pointer-events: none;
        z-index: 1040;
        /* Above sticky footer but below modals (1050) */
    }
}


.fs-12 {
    font-size: .75rem !important;
}

.text-gold {
    color: #E0BB6D;
}

.dropdown-month {
    background: linear-gradient(90deg, rgba(224, 187, 109, 1) 0%, rgba(242, 215, 142, 1) 100%);
}

.nav-link.contest-select,
.nav-link.month-select {
    background-color: #393939;
    width: 80px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0;
}

.fixed-bottom.center-vertical {
    max-width: 100px;
    bottom: 50%;
    /*transform: translate(0, -50%);*/
}

.nav-link.contest-select.active,
.nav-link.month-select.active {
    width: 100%;
    background-color: #E0BB6D;
    color: #000;
    text-align: center;
    text-transform: capitalize;
}

.left-fixed-menu .nav-item {
    padding-top: 5px;
}

.h2 .h3 .h6 .h5 .h4 {
    font-family: 'Roboto', sans-serif;
}

.p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;

}

.logo {
    width: 165px;
    padding-top: 5px;
}

.img-responsive {
    width: auto;
    max-width: 100%;
}

.name {
    font-weight: 600;
    color: #E0BB6D;
    font-size: 14px;
}

/*.making-of {*/
/*    background: rgb(107, 47, 93);*/
/*    background: linear-gradient(90deg, rgba(107, 47, 93, 1) 0%, rgba(218, 144, 202, 1) 100%);*/
/*    padding: 10px 15px 10px 15px;*/
/*    border: 0;*/
/*    border-radius: 10px 10px 10px 10px;*/
/*    color: white;*/
/*    font-weight: 600;*/
/*}*/

.quote {
    font-weight: 600;
    font-style: italic;
}

.comments-full {
    background-color: #090909;
    border-top: 1px solid #333;
}

/*.ppp {*/
/*    box-shadow: 0 -30px 30px 3px rgba(0, 0, 0, 0.10);*/
/*    border-radius: 20px 20px 0 0;*/

/*}*/


.month-theme-name {
    font-size: calc(3.375rem + 1.5vw);
    font-weight: 900;
    text-transform: lowercase;
    color: #E0BB6D;
}

.mysterybox {
    background-color: #333;
    color: #E0BB6D;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
}

.comment-container {
    min-height: 84px;
}

.comment-line {
    font-weight: 600;
    font-style: italic;
    font-size: 14px;
}

.reply {
    margin-left: auto;
    width: 600px;
    margin-top: 10px;
}

.like {
    background: #2a2a2a;
    color: white;
    position: relative;
    height: 73px;
    max-height: 73px;
}

.icon-like {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50%;
    font-size: 40px;
}

.add-comment-container {
    position: sticky;
    bottom: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /*background-color: #E7E7E7;*/
    /*position: sticky;*/
    /*bottom: 0;*/
    /*display: block;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*background: #fcfaee url("/images/bg-comentez.jpg") no-repeat;*/
    /*background-size: cover;*/
    /*!*height: 140px;*!*/
    /*border-radius: 20px 20px 0 0;*/
    /*box-shadow: 0 -14px 29px 3px rgba(0, 0, 0, 0.17);*/

}

.add-comment-container .row>div {
    background-color: #181818;
}

.add-comment-container .dropdown-item:active,
.add-comment-container .dropdown-item.active {
    background-color: #E0BB6D;
    color: #000;
}

/*.add-comment-container .custom-bg-color:active,*/
/*.add-comment-container .custom-bg-color {*/
/*    background-color: #6B2F5D;*/
/*}*/

.add-comment-container .custom-bg-color label {
    cursor: pointer;
}

/*.comment-replay.btn i,*/
/*.add-comment-container .btn i {*/
/*    color: #E3B873;*/
/*}*/

.profil-comentez {
    border: 3px solid #ffffff;
    border-radius: 50%;
    outline: none;
}

.input-group-addon {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

.form-control {
    background-color: #000;
    border-color: #333;
    color: #fff;
}

.form-control:focus {
    background-color: #000;
    border-color: #E0BB6D;
    color: #fff;
}



.buton-posteaza {
    background-color: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;

}

.edit-comment {
    font-size: 14px;
}

.title-organizator {
    text-align: center;
}

.profile-picture-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: white;
}

.profile-picture {
    border-radius: 50%;
    width: 47px;
    /*height: 47px;*/
    height: auto;
}

@media screen and (max-width: 600px) {
    .profile-picture {
        width: 25px;
        float: right;
    }
}

@media (max-width: 767.98px) {
    .like {
        border-radius: var(--bs-btn-border-radius) 0 0 0;
        height: auto;
        max-height: unset;
    }
}

.button-reply {
    text-decoration: underline;
    /*padding-bottom: 10px;*/
}

.view-all {
    text-decoration: underline;
    padding-top: 10px;
    text-align: center;
}

/* Sidebar Menu Styles - Left Side */
.sidebar-menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1045;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: visible;
}

/* Hide scrollbar but keep functionality */
.sidebar-menu::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sidebar-menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-item {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-menu-link {
    display: block;
    padding: 12px 8px;
    background-color: #393939;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    transition: width 0.3s ease, background-color 0.2s ease;
    width: 100px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Current month - highlighted in gold with wider width */
.sidebar-menu-item-current .sidebar-menu-link {
    background: linear-gradient(90deg, rgba(224, 187, 109, 1) 0%, rgba(242, 215, 142, 1) 100%);
    color: #000000;
    width: 130px;
    font-weight: 900;
    box-shadow: 2px 0 8px rgba(224, 187, 109, 0.4);
}

/* Hover states - inactive items expand to match active width */
.sidebar-menu-item:not(.sidebar-menu-item-current):not(.active) .sidebar-menu-link:hover {
    background-color: #4a4a4a;
    color: #ffffff;
    width: 130px;
}

/* Hover for current month (already wide) */
.sidebar-menu-item-current .sidebar-menu-link:hover {
    background: linear-gradient(90deg, rgba(232, 199, 125, 1) 0%, rgba(245, 223, 158, 1) 100%);
    color: #000000;
}

/* Active state (currently viewed contest) */
.sidebar-menu-item.active:not(.sidebar-menu-item-current) .sidebar-menu-link {
    background: linear-gradient(90deg, rgba(224, 187, 109, 1) 0%, rgba(242, 215, 142, 1) 100%);
    color: #000000;
    width: 130px;
    font-weight: 900;
    box-shadow: 2px 0 8px rgba(224, 187, 109, 0.5);
    border-left: 4px solid #6B2F5D;
}

/* Active state for current month (selected + current month) */
.sidebar-menu-item-current.active .sidebar-menu-link {
    border-left: 4px solid #6B2F5D;
}

/* Hover for active non-current items (already wide, just change color) */
.sidebar-menu-item.active:not(.sidebar-menu-item-current) .sidebar-menu-link:hover {
    background: linear-gradient(90deg, rgba(232, 199, 125, 1) 0%, rgba(245, 223, 158, 1) 100%);
    color: #000000;
}

/* Responsive - Hide on smaller screens */
@media (max-width: 767.98px) {
    .sidebar-menu {
        display: none !important;
    }
}

/* For very long menu (many items) */
@media (max-height: 600px) {
    .sidebar-menu-link {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 38px;
    }

    .sidebar-menu-item-current .sidebar-menu-link {
        width: 120px;
    }
}

/* @mention autocomplete dropdown styles */
.mention-dropdown {
    display: none;
    position: absolute;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-width: 400px;
    min-width: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.mention-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mention-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #333;
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.selected {
    background-color: #2a2a2a;
}

.mention-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.mention-info {
    flex: 1;
    min-width: 0;
}

.mention-name {
    font-weight: 600;
    font-size: 14px;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mention-email {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #E0BB6D;
    color: #000;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.source-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #6c757d;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 4px;
}

.source-badge.azure {
    background-color: #0078d4;
}

/* Scrollbar styling for mention dropdown */
.mention-dropdown::-webkit-scrollbar {
    width: 8px;
}

.mention-dropdown::-webkit-scrollbar-track {
    background: #222;
    border-radius: 8px;
}

.mention-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.mention-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode overrides for Bootstrap classes */
.bg-white {
    background-color: #181818 !important;
    color: #e0e0e0 !important;
}

.text-black,
.text-dark,
.link-dark {
    color: #e0e0e0 !important;
}

.text-black-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.border-dark {
    border-color: #333 !important;
}

.btn-link.link-dark {
    color: #E0BB6D !important;
}

.dropdown-menu {
    background-color: #181818;
    border-color: #333;
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #333;
    color: #fff;
}

.modal-content {
    background-color: #181818;
    color: #e0e0e0;
    border-color: #333;
}

.modal-header,
.modal-footer {
    border-color: #333;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.card {
    background-color: #181818;
    border-color: #333;
    color: #e0e0e0;
}

/* Button overrides for Gold theme */
.btn-primary {
    background-color: #E0BB6D;
    border-color: #E0BB6D;
    color: #000;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #000;
}

.btn-outline-primary {
    color: #E0BB6D;
    border-color: #E0BB6D;
}

.btn-outline-primary:hover {
    background-color: #E0BB6D;
    color: #000;
}

.btn-custom-light {
    background-color: #f0f0f0;
    color: #0078d4;
    /* Microsoft Blue or similar */
}

.btn-custom-light:hover {
    background-color: #e0e0e0;
    color: #005a9e;
}

.btn-custom-light i,
.btn-custom-light span {
    color: #0078d4;
}