body {

    font-size: 16px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #293D4A;
    background: #09111a;
}

#sidebar {
    width: 250px;
    transition: all 0.3s;
    overflow-y: auto;
    top: 50px; /* Ajustați acest lucru dacă header-ul are o altă înălțime */
    border-right: 1px solid #293D4A;
    background: #0d1a27;
    z-index: 999; /* Make sure it appears above other elements */
}

/* When the sidebar is active */
#sidebar.active {
    left: 0; /* Slide the sidebar into view */
}

footer {
    border-bottom: 1px solid #293D4A;
    border-top: 1px solid #293D4A;
}

/* Stiluri generale pentru toate h-urile */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
}

/* Stiluri specifice pentru fiecare nivel de titlu */
h1 {
    font-size: 20px;
    font-weight: bold;
}

h2 {
    font-size: 18px;
    font-weight: bold;
}

h3 {
    font-size: 16px;
    font-weight: bold;
}

h4 {
    font-size: 14px;
    font-weight: normal;
}

h5 {
    font-size: 14px;
    font-weight: normal;
}

h6 {
    font-size: 14px;
    font-weight: normal;
}

#content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f8f8;
    transition: all 0.3s;
    margin-top: 50px; /* Ajustați acest lucru dacă header-ul are o altă înălțime */
    margin-left: 250px; /* Ajustați acest lucru dacă sidebar-ul are o altă lțime */
}

#sidebarCollapse {
    display: none;
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        left: -100%;
        top: 50px; /* Ajustați acest lucru dacă header-ul are o altă înlțime */
    }

    #sidebar.active {
        left: 0;
    }

    #sidebarCollapse {
        display: block;
    }

    #content {
        padding: 20px;
        margin-left: 0; /* Resetăm margin-left pe mobil */
    }
}

header .btn-light {
    background-color: #fff;
    border: 1px solid #ccc;
}

header .dropdown-menu {
    right: 0;
    left: auto;
}

img {
    max-width: 100%;
    height: auto;
  }

.feed-item ul {
    padding-left: 0;
    list-style-type: none; /* Hides the bullet points */
}

.dark-mode {
    background-color: #343a40;
    color: #ffffff;
}

.dark-mode header {
    border-bottom: 1px solid #293D4A;
}

.dark-mode #sidebar {
    background: #0d1a27;
    border-right: 1px solid #293D4A;
}

.dark-mode #content {
    background-color: #212529;
    color: #ffffff;
}

.dark-mode .btn-light {
    background-color: #495057;
    border-color: #6c757d;
    color: #ffffff;
}

.dark-mode .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #ffffff;
}

    /* Stil pentru placeholder în modul întunecat */
    .dark-mode ::-webkit-input-placeholder {
        color: #ffffff; /* Pentru browserele WebKit */
      }
      .dark-mode :-moz-placeholder {
        color: #ffffff; /* Pentru Firefox 18- */
      }
      .dark-mode ::-moz-placeholder {
        color: #ffffff; /* Pentru Firefox 19+ */
      }
      .dark-mode :-ms-input-placeholder {
        color: #ffffff; /* Pentru Internet Explorer 10- */
      }
      .dark-mode ::placeholder {
        color: #ffffff; /* Standard modern */
      }

.dark-mode .input-group-text {
    background-color: #495057;
    border-color: #293D4A;
    color: #ffffff;
}
/* Stil pentru .list-group n varianta dark */
.dark-mode .list-group {
    background-color: #212529;
    color: #ffffff;
}

.dark-mode .list-group .list-group-item {
    background-color: #212529;
    color: #ffffff;
    border: 1px solid #293D4A;
}

.dark-mode .list-group .list-group-item:hover, 
.dark-mode .list-group .list-group-item:focus {
    background-color: #272C30;
    color: #ffffff;
}

/* Stil pentru item activ */
.dark-mode .list-group .list-group-item.active {
    background-color: #007bff;
    border-color: #293D4A;
    color: #ffffff;
}

/* Stil pentru itemi dezactivați */
.dark-mode .list-group .list-group-item.disabled {
    background-color: #6c757d;
    color: #adb5bd;
}

/* Stil pentru itemi cu indicatori */
.dark-mode .list-group .list-group-item .list-group-item-heading {
    color: #ffffff;
}

.dark-mode .list-group .list-group-item .list-group-item-text {
    color: #adb5bd;
}

@media (max-width: 576px) {
    .no-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #content {
        padding: 0 !important;
        margin-left: 0 !important;
    }
}

/* Scrollbar pentru WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px; /* Lățimea scrollbar-ului */
}

::-webkit-scrollbar-track {
    background: #343a40; /* Culoarea fundalului track-ului */
}

::-webkit-scrollbar-thumb {
    background-color: #888; /* Culoarea thumb-ului */
    border-radius: 10px; /* Rotunjirea colțurilor thumb-ului */
    border: 3px solid #343a40; /* Spațiul dintre thumb și track */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Culoarea thumb-ului la hover */
}

/* Scrollbar pentru Firefox */
* {
    scrollbar-width: thin; /* Grosimea scrollbar-ului */
    scrollbar-color: #888 #343a40; /* Culoarea thumb-ului i a track-ului */
}

/* Scrollbar pentru Internet Explorer și Edge */
body {
    -ms-overflow-style: -ms-autohiding-scrollbar; /* Ascunde scrollbar-ul când nu este utilizat */
}

a.linkselect, a.linkselect:visited{
	color: #fff;
	text-decoration: none;	
	text-shadow: none;
	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	transition: all 0.3s linear;
}
a.linkselect:link, a.linkselect:hover, .tcat a:active
{
	color: #fff;
	text-decoration: none;
}

a.linkselect:hover {
	color: #c62424;
	text-decoration:none;
}



a:link, a:visited{
	text-decoration: none;	
	text-shadow: none;
	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	transition: all 0.3s linear;
}
a:link, a:hover, .tcat a:active
{
	text-decoration: none;
}

a:hover {
	color: #c62424;
	text-decoration:none;
}


    /* Stilizare personalizat pentru card */
    .custom-card {
        border: 1px solid #293D4A;
        border-radius: 0.25rem;
        padding: 1rem;
      }
      .custom-card .card-title {
        font-size: 1.25rem;
        font-weight: bold;
      }
      .custom-card .card-text {
        font-size: 1rem;
      }

    /* Stilizare personalizată pentru ifeed-chan */
    .thread-list {
        max-height: 80vh;
        overflow-y: scroll;
        border: 1px solid #293D4A;
        padding: 10px;
        margin: 20px auto;
        width: 100%;
    }
    .thread-item {
        padding: 10px;
        border-bottom: 1px solid #293D4A;
        display: flex;
    }
    .thread-item:last-child {
        border-bottom: none;
    }
    .thread-image {
        max-width: 100px;
        margin-right: 10px;
    }
    .thread-details {
        flex: 1;
    }
    .thread-title {
        font-weight: bold;
        margin-bottom: 5px;
    }
    .thread-time {
        color: #999;
        font-size: 0.9em;
    }
    .thread-comment {
        margin: 10px 0;
    }

    /* Stilizare personalizată pentru ifeed-telegram */
    #itemsh {
        max-height: 80vh;
        overflow-y: scroll;
        border: 1px solid #293D4A;
        padding: 10px;
        margin: 20px auto;
        width: 100%;
    }
    .itemsa {
        padding: 10px;
        border-bottom: 1px solid #293D4A;
        display: flex;
    }
    .itemsa:last-child {
        border-bottom: none;
    }
    .itemsa-details {
        flex: 1;
    }
    .itemsa-title {
        font-weight: bold;
        margin-bottom: 5px;
    }
    .itemsa-pub-date {
        color: #999;
        font-size: 0.9em;
    }
    .itemsa-description {
        margin: 10px 0;
    }


	#scrollUpButton {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
        display: none;
        border-radius: 50%;
        font-size: 18px;
        padding: 10px 15px;
        background-color: #6c757d;
        color: white;
        border: none;
        cursor: pointer;
		}

        #scrollUpButton:hover {
        background-color: #343a40;
        }

		#scrollDownButton {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
        display: none;
        border-radius: 50%;
        font-size: 18px;
        padding: 10px 15px;
        background-color: #6c757d;
        color: white;
        border: none;
        cursor: pointer;
		}

		#scrollDownButton:hover {
			background-color: #343a40;
		}