body {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, opacity 0.3s;
}

.font-primary {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.5;
}

.font-secondary {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #333;
}

.top-block {
    font-family: 'Roboto', sans-serif;
    display: flex;
    gap: 20px;
    max-height: 80vh;
    margin-top: 10px;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 50px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 50px;
    margin-left: 10px;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.3s ease;
}


body.dark-mode .logo {
    color: #d3d3d3;
}


.logo:hover {
    color: #8a2be2;
    transform: scale(1.1);
}


.main-news-column {
    flex: 6;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #e3e3e3;
    border: 2px solid #8a2be2;
    padding: 0px 20px 30px;
    margin: 0px 0px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.main-news-column h2 {
    font-family: 'Roboto', sans-serif;
}

.main-news-column .news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.top-block a {
    text-decoration: none;
    color: inherit;
    font: inherit;
}

.main-news-column .news-link img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.main-news-column:hover {
    box-shadow: 0 8px 12px rgba(138, 43, 226, 0.4), 0 0 15px rgba(138, 43, 226, 0.6);
    transform: scale(1.02);
}

.main-news-column .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-news-column .overlay h2 {
    margin: 0;
    font-size: 1.5rem;
}

.main-news-column .overlay small {
    font-size: 0.9rem;
    color: #ccc;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.6), 0 0 20px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.6), 0 0 20px rgba(138, 43, 226, 0.4);
    }
}

.main-news-column.glowing {
    animation: glow 1.0s infinite alternate;
}

body.dark-mode .main-news-column {
    background-color: #2a2a2a;
    border-color: #8a2be2;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

body.dark-mode .main-news-column:hover {
    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.2);
}

.secondary-news-column{
    display: flex;
    flex-wrap: wrap;
    flex: 4;
    gap: 20px;
    padding-top: 0px;
    padding-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .secondary-news-column {
}

.secondary-news-column .news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 10px;
    width: 100%;
}

.secondary-news-column .news-item h3 {
    margin: 10px 0;
}

.secondary-news-column .news-item small {
    margin: 10px 0;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-feed .news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background-color: #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    padding: 0px 0px 0px 0px;
    border-left: 5px solid #8a2be2;
}

.news-feed .news-item::after {
    position: absolute;
    top: 10%;
    right: 7px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #76c893;
}

.news-feed .news-item[data-age="recent"]::after {
    background-color: #ffd166;
}

.news-feed .news-item[data-age="moderate"]::after {
    background-color: #f8961e;
}

.news-feed .news-item[data-age="old"]::after {
    background-color: #e63946;
}

body.dark-mode .news-feed .news-item::after {
    background-color: #76c893;
}

body.dark-mode .news-feed .news-item[data-age="recent"]::after {
    background-color: #ffd166;
}

body.dark-mode .news-feed .news-item[data-age="moderate"]::after {
    background-color: #f8961e;
}

body.dark-mode .news-feed .news-item[data-age="old"]::after {
    background-color: #e63946;
}

.news-feed .news-item img {
    width: 300px;
    height: auto;
    border-radius: 0px 5px 5px 0px;
    flex-shrink: 0;
}

.news-feed .news-item .news-content {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.news-feed .news-item .news-content h3 {
    margin: 5px 0 5px;
    font-size: 1.1rem;
}

.news-feed .news-item .news-content small {
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
}

.news-list .news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background-color: #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    padding: 0px 0px 0px 0px;
    border-left: 5px solid #8a2be2;
}

.news-list .news-item::after {
    position: absolute;
    top: 10%;
    right: 7px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #76c893;
}

.news-list .news-item[data-age="recent"]::after {
    background-color: #ffd166;
}

.news-list .news-item[data-age="moderate"]::after {
    background-color: #f8961e;
}

.news-list .news-item[data-age="old"]::after {
    background-color: #e63946;
}

body.dark-mode .news-list .news-item::after {
    background-color: #76c893;
}

body.dark-mode .news-list .news-item[data-age="recent"]::after {
    background-color: #ffd166;
}

body.dark-mode .news-list .news-item[data-age="moderate"]::after {
    background-color: #f8961e;
}

body.dark-mode .news-list .news-item[data-age="old"]::after {
    background-color: #e63946;
}

.news-list .news-item img {
    width: 250px;
    height: auto;
    border-radius: 0px 5px 5px 0px;
    flex-shrink: 0;
}

.news-list .news-item .news-content {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.news-list .news-item .news-content h3 {
    margin: 5px 0 5px;
    font-size: 1.1rem;
}

.news-list .news-item .news-content small {
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
}

.main-news {
    text-decoration: none;
    color: inherit;
    border-left: 4px solid #8a2be2;
    padding-left: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s, border-left-color 0.3s;
}

.main-news:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left-color: #c17ffc;
}

body.dark-mode .main-news {
    background-color: #2a2a2a;
    color: #d3d3d3;
    border-left-color: #8a2be2;
}

body.dark-mode .main-news:hover {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    border-left-color: #c17ffc;
}

.main-news img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.news-source {
    color: #007BFF;
    text-decoration: none;
}

body.dark-mode .news-source {
    color: #c17ffc;
}

.news-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    transition: background-color 0.3s;
}

body.dark-mode .news-item:hover {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.news-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left-color: #c17ffc;
}

body.dark-mode .news-item {
    background-color: #2a2a2a;
    color: #d3d3d3;
    border-left-color: #8a2be2;
}

body.dark-mode .news-item:hover {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    border-left-color: #c17ffc;
}

body.dark-mode .news-item::after {
    background-color: transparent;
}

.news-item h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.news-item small {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
}

body.dark-mode .news-item h3 {
    color: #d3d3d3;
}

body.dark-mode .news-item small {
    color: #aaa;
}

.news-item.selectable {
    cursor: pointer;
    outline: 2px dashed #ccc;
    outline-offset: -4px;
}

.news-item.selectable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-item.selected {
    border: 2px solid #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    outline: none;
}


.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-link img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.news-link h3 {
    margin: 10px 10px 20px 10px;
}

.news-link small {
    margin: 10px;
}


.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 10px;
}

.news-image {
    flex: 0 0 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #333;
    flex: 1;
}

body.dark-mode .news-title {
    color: #e0e0e0;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    align-items: flex-start;
}

body.dark-mode .news-title {
    color: #e0e0e0;
}

body.dark-mode .news-meta {
    color: #a0a0a0;
}

body.dark-mode {
    background-color: #1e1e1e;
    color: #d3d3d3;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    color: inherit;
}

.container {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-top: 80px;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-menu {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 1000;
    transition: top 0.3s ease, background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-menu input, .top-menu button {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

body.dark-mode .top-menu {
    background-color: #2a2a2a;
    color: #d3d3d3;
}

.top-menu img.site-logo {
    height: 40px;
    width: auto;
    margin-left: 5px;
}

button.theme-icon {
    height: 40px;
    width: 40px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

button.theme-icon img {
    height: 100%;
    width: auto;
}

.theme-icon .sun {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s, transform 0.5s;
}

.theme-icon .rays {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.theme-icon .moon {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s, transform 0.5s;
}


body.dark-mode .sun {
    opacity: 0;
    transform: scale(0.8);
}

body.dark-mode .rays {
    opacity: 0;
}

body.dark-mode .moon {
    opacity: 1;
    transform: scale(1);
}



.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-button {
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.filter-button:hover {
    background-color: #f0f0f0;
    color: #8a2be2;
    transform: translateY(-2px);
}

.filter-button:active {
    background-color: #d9d9d9;
    transform: translateY(1px);
}

body.dark-mode .filter-button {
    background-color: #2a2a2a;
    border: 1px solid #555;
    color: #d3d3d3;
}

body.dark-mode .filter-button:hover {
    background-color: #333;
    color: #c17ffc;
}

.filter-button.active {
    background-color: #8a2be2;
    color: white;
}

body.dark-mode .filter-button.active {
    background-color: #8a2be2;
}

#cookie-consent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#cookie-consent p {
    margin: 0 0 10px;
}

#accept-cookies,
#decline-cookies {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#accept-cookies {
    margin-right: 10px;
    background: green;
    color: white;
}

#decline-cookies {
    background: red;
    color: white;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}


.search-bar input {
    border: none;
    outline: none;
    padding: 10px 40px 10px 10px;
    font-size: 16px;
    flex: 1;
}

.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s, transform 0.2s;
}

.search-bar button img {
    height: 20px;
    width: 20px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.6);
    transition: filter 0.3s ease;
}

.search-bar button:hover {
    background-color: #f0f0f0;
}

.search-bar:focus-within {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.6);
    border-color: #8a2be2;
}

body.dark-mode .search-bar {
    background-color: #2a2a2a;
    border: 1px solid #555;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-bar input {
    background-color: #2a2a2a;
    color: #d3d3d3;
}

body.dark-mode .search-bar button {
    background-color: #2a2a2a;
}

body.dark-mode .search-bar button:hover {
    background-color: #333;
}

body.dark-mode .search-bar:focus-within {
    box-shadow: 0 0 5px rgba(193, 127, 252, 0.6);
    border-color: #c17ffc;
}


.search-bar input:-webkit-autofill {
    background-color: inherit;
    color: inherit;
    box-shadow: 0 0 0px 1000px inherit inset;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: inherit;
}

.search-bar input:-webkit-autofill:focus {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.6);
    border-color: #8a2be2;
}


body.dark-mode .search-bar input:-webkit-autofill {
    background-color: #2a2a2a;
    -webkit-text-fill-color: #d3d3d3;
    box-shadow: 0 0 0px 1000px #2a2a2a inset;
}

body.dark-mode .search-bar button img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.5);
}


.news-content h3 {
    margin: 0 0 5px 0;
}

.news-content small {
    display: block;
    margin-top: 10px;
    color: #666;
}


body.dark-mode .news-content small {
    color: #aaa;
}

#scroll-loader {
    text-align: center;
    color: #333;
}

body.dark-mode #scroll-loader {
    color: #d3d3d3;
}


.filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}


.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

body.dark-mode .filter-group label {
    color: #d3d3d3;
}


.filter-group input,
.filter-group select {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

body.dark-mode .filter-group input,
body.dark-mode .filter-group select {
    background-color: #2a2a2a;
    color: #d3d3d3;
    border: 1px solid #555;
}


.filter-group input:focus,
.filter-group select:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.6);
}

body.dark-mode .filter-group input:focus,
body.dark-mode .filter-group select:focus {
    border-color: #c17ffc;
    box-shadow: 0 0 5px rgba(193, 127, 252, 0.6);
}


.apply-filters {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #8a2be2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.apply-filters:hover {
    background-color: #6f22b0;
    transform: translateY(-2px);
}

.apply-filters:active {
    background-color: #5a198c;
    transform: translateY(1px);
}

body.dark-mode .apply-filters {
    background-color: #8a2be2;
    color: #fff;
}

body.dark-mode .apply-filters:hover {
    background-color: #a25bd8;
}

body.dark-mode .apply-filters:active {
    background-color: #724aa6;
}


input:-webkit-autofill {
    background-color: inherit;
    color: inherit;
    box-shadow: 0 0 0px 1000px inherit inset;
    -webkit-text-fill-color: inherit;
    transition: background-color 5000s ease-in-out 0s;
}


body.dark-mode input:-webkit-autofill {
    background-color: #2a2a2a;
    color: #d3d3d3;
    box-shadow: 0 0 0px 1000px #2a2a2a inset;
    -webkit-text-fill-color: #d3d3d3;
}

#source-filter {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

#sources {
    max-height: 200px;
    overflow-y: auto;
}

.context-menu, #source-filter, #sources {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


body.dark-mode .context-menu,
body.dark-mode #source-filter,
body.dark-mode #sources {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.filters #source-filter {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

body.dark-mode .filters #source-filter {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}


#sources {
    display: block;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


body.dark-mode #sources {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #555555;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}


#sources option {
    padding: 5px;
    background-color: #ffffff;
    color: #000000;
}


body.dark-mode #sources option {
    background-color: #2a2a2a;
    color: #ffffff;
}


input:-webkit-autofill {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
}


body.dark-mode input:-webkit-autofill {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0px 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #ffffff !important;
}


#source-filter {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

body.dark-mode #source-filter {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}


.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.scroll-to-top:hover svg {
    transform: scale(1.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark-mode .scroll-to-top {
    background-color: #333;
}

body.dark-mode .scroll-to-top svg {
    fill: #d3d3d3;
}

.total-results {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    color: #555;
}

.total-results p {
    margin: 5px 0;
    font-size: 14px;
}

body.dark-mode .total-results {
    color: #d3d3d3;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding-right: 35px;
    box-sizing: border-box;
}

.clear-input {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.clear-input:hover {
    opacity: 1;
    color: #333;
}

body.dark-mode .clear-input {
    color: #d3d3d3;
}

body.dark-mode .clear-input:hover {
    color: #fff;
}

.like-section {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.like-section:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.like-button {
    font-variant: normal;
    font-family: Arial, sans-serif;
    text-rendering: optimizeLegibility;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: color 0.3s;
}

.like-button.liked {
    color: #8a2be2;
}

.like-button:hover {
    color: #8a2be2;
}

.like-count {
    font-size: 14px;
    font-weight: bold;
}

.like-button.unauthorized {
    cursor: default;
    pointer-events: none;
}

.like-button.unauthorized:hover {
    color: #555;
}

.like-button::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/static/images/like-grey.png');
    background-size: cover;
    margin-right: 3px;
    margin-bottom: -3px;
}

.like-button.liked::before {
    background-image: url('/static/images/like-liked.png');
}


body.dark-mode .like-button {
    color: #d3d3d3;
}

body.dark-mode .like-button.liked {
    color: #c17ffc;
}

body.dark-mode .like-button:hover {
    color: #c17ffc;
}

body.dark-mode .like-section {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d3d3d3;
    border-radius: 20px;
    padding: 5px 10px;
}

.main-news-column .like-section {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-news-column .like-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

.main-news-column .like-section .like-button.liked {
    color: #8a2be2;
}

body.dark-mode .main-news-column .like-section .like-button {
    color: #d3d3d3;
}

body.dark-mode .main-news-column .like-section .like-button.liked {
    color: #c17ffc;
}

.secondary-news-column .like-section {
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.secondary-news-column .like-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: color 0.3s;
}

.secondary-news-column .like-button.liked {
    color: #8a2be2;
}

.secondary-news-column .like-button:hover {
    color: #8a2be2;
}

body.dark-mode .secondary-news-column .like-button {
    color: #d3d3d3;
}

body.dark-mode .secondary-news-column .like-button.liked {
    color: #c17ffc;
}

body.dark-mode .secondary-news-column .like-button:hover {
    color: #c17ffc;
}

.like-section.unauthorized {
    background-color: transparent;
    box-shadow: none;
    transition: none;
}

.like-section.unauthorized:hover {
    transform: none;
}

.like-button.unauthorized {
    cursor: default;
    pointer-events: none;
    color: inherit;
}

.like-button.unauthorized:hover {
    color: inherit;
}

body.dark-mode .like-section.unauthorized {
    background-color: transparent;
    box-shadow: none;
    transition: none;
}

body.dark-mode .like-section.unauthorized:hover {
    transform: none;
}

body.dark-mode .like-button.unauthorized {
    cursor: default;
    pointer-events: none;
    color: inherit;
}

body.dark-mode .like-button.unauthorized:hover {
    color: inherit;
}

.default {
    display: block;
}

.default-dark {
    display: none;
}

body.dark-mode .default {
    display: none;
}

body.dark-mode .default-dark {
    display: block;
}

.profile-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.default-light {
    display: block;
}

.default-dark {
    display: none;
}

body.dark-mode .default-light {
    display: none;
}

body.dark-mode .default-dark {
    display: block;
}

.logout-form {
    margin-top: 20px;
    text-align: center;
}

.logout-button {
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout-button:hover {
    background-color: #d62828;
    transform: scale(1.05);
}

.logout-button:active {
    background-color: #b51717;
    transform: scale(0.95);
}


.left-column {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    flex: 2;
    display: flex;
}

body.dark-mode .right-column {
}

.favorite-tags {
    background-color: var(--container-background, #ffffff);
    color: var(--text-color, #333);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .favorite-tags {
    background-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.liked-posts {
    background-color: var(--liked-posts-background, #f0f0f0);
    color: var(--text-color, #333);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .liked-posts {
    background-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.liked-posts button.toggle-liked-posts {
    margin-top: 10px;
    background-color: #8a2be2;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.liked-posts button.toggle-liked-posts:hover {
    background-color: #6f22b0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--container-background, #ffffff);
    color: var(--text-color, #333);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .user-info {
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.profile-picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.user-info img.profile-picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.change-name {
    background-color: var(--card-bg-color, #ffffff);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-name .change-name-form {
    display: none;
    margin-top: 10px;
}

.change-name .change-name-form.active {
    display: block;
}

.change-name button.toggle-change-name {
    background-color: #8a2be2;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.change-name button.toggle-change-name:hover {
    background-color: #6f22b0;
}

.editable-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.display-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode .display-name {
    color: #dcdcdc;
}

.display-name:hover {
    color: #8a2be2;
}

body.dark-mode .display-name:hover {
    color: #8a2be2;
}

.change-name-form {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.change-name-form input {
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

.change-name-form button {
    background-color: #8a2be2;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.change-name-form button:hover {
    background-color: #6f22b0;
}

.favorite-tags ul {
    list-style: none;
    padding: 0;
}

.favorite-tags li {
    margin-bottom: 10px;
}

h2, p {
    color: var(--text-color, #333);
    transition: color 0.3s;
}

body.dark-mode h2, body.dark-mode p {
    color: #dcdcdc;
}


.tag-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px;
    position: relative;
    cursor: default;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    height: 20px;
}


.tag-container.subscribed {
    border-color: #8a2be2;
}


.tag {
    padding: 3px 8px;
    font-size: 10px;
    background-color: #f5f5f5;
    color: #000000;
    white-space: nowrap;
    text-align: center;
    flex-grow: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
    background-color: #e9e9e9;
}


.subscribe-zone {
    width: 20px;
    height: 100%;
    border-left: 1px solid #cccccc;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


.tag-container.subscribed .subscribe-zone {
    background-color: #8a2be2;
    border-left: 1px solid #8a2be2;
}

.subscribe-zone:hover {
    background-color: #d3d3d3;
}

.tag-container.unauthorized .subscribe-zone {
    cursor: default;
    pointer-events: none;
}

.tag-container.subscribed .subscribe-zone:hover {
    background-color: #7a1fd2;
}


body.dark-mode .tag-container {
    border-color: #555555;
    background-color: #444444;
}

body.dark-mode .tag-container.subscribed {
    border-color: #8a2be2;
}

body.dark-mode .tag {
    background-color: #555555;
    color: #ffffff;
}

body.dark-mode .tag:hover {
    background-color: #666666;
}

body.dark-mode .subscribe-zone {
    background-color: #666666;
    border-left: 1px solid #555555;
}

body.dark-mode .subscribe-zone:hover {
    background-color: #8a2be2;
}

body.dark-mode .tag-container.subscribed .subscribe-zone {
    background-color: #8a2be2;
    border-left: 1px solid #8a2be2;
}

body.dark-mode .tag-container.subscribed .subscribe-zone:hover {
    background-color: #7a1fd2;
}


.modal {
    display: none;
    pointer-events: none;
    position: fixed;
    top: 10%;
    right: 20px;
    width: 400px;
    height: 80%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow: hidden;
}

body.dark-mode .modal {
    background-color: #2a2a2a;
    border-color: #555;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.modal-content {
    background: none;
    pointer-events: auto;
    padding: 30px;
    border-radius: 8px;
    width: 500px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    color: #333;
}

body.dark-mode .modal-content {
    color: #d3d3d3;
}

.modal.hidden {
    display: none;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

body.dark-mode .close-modal {
    color: #d3d3d3;
}

.tag-editor {
    padding: 20px 0px;
    margin: 10px 0px;
}

.add-tag-button {
    display: block;
    width: 3    0%;
    padding: 10px;
    font-size: 12px;
    color: white;
    background-color: #8a2be2;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.add-tag-button:hover {
    background-color: #6f22b0;
}

body.dark-mode .add-tag-button {
    background-color: #8a2be2;
}

body.dark-mode .add-tag-button:hover {
    background-color: #724aa6;
}

.apply-button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background-color: #8a2be2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.apply-button:hover {
    background-color: #6f22b0;
}

body.dark-mode .apply-button {
    background-color: #8a2be2;
}

body.dark-mode .apply-button:hover {
    background-color: #724aa6;
}

.admin-panel-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    padding: 10px 15px;
    background-color: #8a2be2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100;
}

.admin-panel-button:hover {
    background-color: #6f22b0;
}

.service-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.2s;
}

body.dark-mode .service-tag {
    background-color: #333;
    color: #d3d3d3;
}

.service-tag:hover {
    background-color: #e63946;
    color: white;
    transform: scale(1.1);
}

body.dark-mode .service-tag:hover {
    background-color: #e63946;
    color: white;
    transform: scale(1.1);
}

#new-title, #tag-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    color: #333;
}

body.dark-mode #new-title,
body.dark-mode #tag-input {
    background-color: #1e1e1e;
    color: #d3d3d3;
    border-color: #555;
}


.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background-color, #f5f5f5);
    color: var(--text-color, #333);
    padding: 20px;
    box-sizing: border-box;
}


body.dark-mode .login-container {
    --background-color: #1e1e1e;
    --text-color: #d3d3d3;
}


.login-form-container {
    background: var(--form-background, #ffffff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-bottom: 20px;
}


body.dark-mode .login-form-container {
    --form-background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}


.login-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--input-border-color, #ccc);
    border-radius: 5px;
    background: var(--input-background, #fff);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}


body.dark-mode .login-form input {
    --input-border-color: #555;
    --input-background: #333;
}


.login-button {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: var(--primary-color, #8a2be2);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}


.login-button:hover {
    background-color: var(--primary-color-hover, #6f22b0);
}


body.dark-mode .login-button {
    --primary-color: #c17ffc;
    --primary-color-hover: #a25bd8;
}


.registration-container {
    background: var(--form-background, #ffffff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}


body.dark-mode .registration-container {
    --form-background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}


.register-button {
    width: calc(100% - 20px);
    padding: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}


.email-register {
    background-color: #4285f4;
}

.email-register:hover {
    background-color: #3367d6;
}


.google-register {
    background-color: #db4437;
}

.google-register:hover {
    background-color: #c33d2f;
}


body.dark-mode .email-register {
    background-color: #5b98f7;
}

body.dark-mode .google-register {
    background-color: #e56457;
}

.error-message {
    color: #e63946;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
    display: none;
}

body.dark-mode .error-message {
    color: #f87171;
}


.register-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background-color, #f5f5f5);
    color: var(--text-color, #333);
    padding: 20px;
    box-sizing: border-box;
}


body.dark-mode .register-page-container {
    --background-color: #1e1e1e;
    --text-color: #d3d3d3;
}


.registration-form-container {
    background: var(--form-background, #ffffff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-bottom: 20px;
}


body.dark-mode .registration-form-container {
    --form-background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}


.registration-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--input-border-color, #ccc);
    border-radius: 5px;
    background: var(--input-background, #fff);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}


body.dark-mode .registration-form input {
    --input-border-color: #555;
    --input-background: #333;
}


.register-button {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: var(--primary-color, #8a2be2);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}


.register-button:hover {
    background-color: var(--primary-color-hover, #6f22b0);
}


body.dark-mode .register-button {
    --primary-color: #c17ffc;
    --primary-color-hover: #a25bd8;
}


.alternative-options {
    background: var(--form-background, #ffffff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}


body.dark-mode .alternative-options {
    --form-background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}


.social-button {
    width: calc(100% - 20px);
    padding: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.google-register {
    background-color: #db4437;
}

.google-register:hover {
    background-color: #c33d2f;
}

body.dark-mode .google-register {
    background-color: #e56457;
}

.password-container {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.password-container input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 5px;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-left: -35px;
    margin-top: -15px;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #c17ffc;
}

.profile-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 80px auto 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.dark-mode .profile-container {
    --container-background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    background-color: #f8f8f8;
}

.tab-button {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    background-color: #f8f8f8;
    border: none;
    border-bottom: 2px solid transparent;
    transition: background-color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
    background-color: #ffffff;
    border-bottom: 2px solid #8a2be2;
    font-weight: bold;
    color: #333;
}

body.dark-mode .tabs {
    background-color: #333;
}

body.dark-mode .tab-button {
    background-color: #444;
    color: #d3d3d3;
}

body.dark-mode .tab-button.active {
    background-color: #2a2a2a;
    border-bottom: 2px solid #8a2be2;
    color: #fff;
}

.tab-content-wrapper {
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#settings-tab {
    margin: 0 auto;
    max-width: 60%;
}

.user-main {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-info .left-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-info .right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.user-info .editable-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info .editable-name .display-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.user-info .editable-name .display-name:hover {
    color: #8a2be2;
}

.user-info img {
    align: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #8a2be2;
}

.change-password {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.change-password form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.change-password h2 {
    margin-bottom: 10px;
    text-align: center;
}

.change-password form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.change-password form button {
    width: 100%;
    padding: 10px;
    background-color: #8a2be2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.change-password form button:hover {
    background-color: #6f22b0;
}

.cookie-preferences {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cookie-preferences button {
    margin: 5px;
    padding: 10px;
    background-color: #8a2be2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-preferences button:hover {
    background-color: #6f22b0;
}

.delete-account {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.delete-account button {
    width: 100%;
    padding: 10px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-account button:hover {
    background-color: #b51717;
}

.change-password .info-text {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

body.dark-mode .change-password .info-text {
    color: #ccc;
}


body.dark-mode .tab-content-wrapper {
    background-color: #2a2a2a;
    color: #d3d3d3;
}

body.dark-mode .tab-content {
    background-color: #333;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-main {
    background-color: #2a2a2a;
    color: #d3d3d3;
}

body.dark-mode .change-password,
body.dark-mode .change-password form input,
body.dark-mode .cookie-preferences,
body.dark-mode .delete-account {
    background-color: #333;
    color: #d3d3d3;
}

#policy-links {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#policy-links.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#policy-toggle {
    background-color: #8a2be2;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#policy-toggle:hover {
    background-color: #6f22b0;
    transform: scale(1.05);
}

#policy-content {
    display: none;
    position: absolute;
    width: 130px;
    bottom: 50px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: left;
}

#policy-content a {
    display: block;
    padding: 5px 10px;
    width: 100%;
    box-sizing: border-box;
}

#policy-content a:hover {
    color: #8a2be2;
}

body.dark-mode #policy-links {
    background-color: #2a2a2a;
    color: #d3d3d3;
}

body.dark-mode #policy-content {
    background-color: #333333;
    color: #ffffff;
    border-color: #555555;
}

body.dark-mode #policy-content a {
    color: #d3d3d3;
}

body.dark-mode #policy-content a:hover {
    color: #c17ffc;
}

