.lato-thin {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.lato-light {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.lato-bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.lato-black {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.lato-thin-italic {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.lato-light-italic {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.lato-regular-italic {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.lato-bold-italic {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.lato-black-italic {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: italic;
}



html,
body {
    /* margin: 0; */
    /* padding: 0; */
    overflow-x: hidden;
    width: 100%;
    /* background-color: #08254a; */
    /* color: #fff; */
    /* font-family: 'Goodly', sans-serif; */

    transition: background-color 0.3s, color 0.3s;
}



.header {
    width: 100%;
    text-align: left;
    /* Nagłówek wyrównany do lewej */
    padding: 10px 20px;
    /* margin: 0; */
}

.header .row {
    margin: 0;
}

.avatar-wrapper {
    width: 6rem;
    /* lub dowolny inny rozmiar */
    /*height: 6rem;*/
    overflow: hidden;
    display: inline-block;
}

.avatar-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

footer {}

.site {
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 20px;
}



.content {
    /*             flex: 1; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -2rem;
}

.login-header {
    /*             flex: 1; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-login {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-header-card {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;

    background: rgba(0, 0, 0, 0.1);
}

.diagonal-background {
    background: linear-gradient(135deg, rgba(79, 62, 99, 0.7) 50%, rgba(255, 255, 255, 0.8) 50%);
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.card-header {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #34495e;

    /*font-family: var(--font-primary);*/
    /*background-color: #ffffff;*/
}

.order {
    font-weight: normal;
    /* Regular */
}

/* Styl dla "ease" (czcionka light) */
.ease {
    font-weight: 300;
    /* Light */
}


.form-control {
    /* border-radius: 30px; */
    /* background-color: #f1f6f9; */
    /* border: none; */
    /* padding: 12px 15px; */
}

/* .btn-primary {
    width: 100%;
    border-radius: 30px;
    background-color: #08254a;
    border: none;
} */

.btn-outline-primary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    border-color: var(--color-secondary-hover) !important;
    background-color: var(--color-secondary) !important;
    color: var(--color-text-white) !important;
}

.btn-outline-primary.active {
    color: var(--color-text-white);
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
}

.btn-outline-primary.active:hover {
    color: var(--color-text-white);
    border-color: var(--color-secondary-hover);
    background-color: var(--color-secondary-hover);
}


.btn-primary {
    color: var(--color-text-white) !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
}

.text-muted {
    color: var(--color-text-light) !important;
}

.btn:hover {
    border-color: var(--color-primary);
}

.btn:active {
    border-color: var(--color-primary-hover);
}

.text-primary {
    color: var(--color-primary) !important;
}

.background-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}


.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.menu-item i {
    font-size: 24px;
    margin-right: 15px;
}

button {
    margin-top: auto;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    padding: 10px;
    cursor: pointer;
}


/*Menu mobilne*/
.hamburger {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 2rem;
    z-index: 1001;
}

.menu {
    width: 70%;
    height: 100%;
    position: fixed;
    top: 0;
    right: -70%;
    /* Ukryte poza ekranem */
    background-color: var(--card-bg);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.menu li {
    margin: 20px 0;
}

.menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 24px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Dashboard */

.dashboard-header h1 {
    color: var(--primary-color, #d1e3ff);
    /* font-size: 2rem; */
    margin-bottom: 0.5rem;
}

.user-role {
    color: var(--role-color, #78c7ff);
    opacity: 0.5;
    font-weight: bold;
}

.dashboard-card {
    background-color: var(--background-card, #1a2531);
    border: 1px solid var(--border-color, #3a4065);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-color, #fff);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table-custom {
    background-color: var(--table-bg, #1f2436);
    border-color: var(--table-border, #3a4065);
    color: var(--text-color, #d1e3ff);
}

.table-custom th {
    border-bottom: 2px solid var(--table-border, #3a4065);
}

.table-custom td,
.table-custom th {
    padding: 0.75rem;
}

/* Dashboard - koniec */

.mobile {
    display: none;
    /* Domyślnie ukryte */
}

.no-mobile,
.not-mobile {
    display: block;
    /* Domyślnie widoczne */
}


.lato-regular strong,
lato-regular b {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* Zmiana ogólnego wyglądu scrollbara */
::-webkit-scrollbar {
    width: 5px;
    /* Szerokość pionowego scrolla */
    height: 5px;
    /* Wysokość poziomego scrolla */
}

/* Tło paska przewijania */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Kolor paska przewijania (thumb) */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Styl przy najechaniu kursorem */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Opcjonalnie można zmienić narożniki */
::-webkit-scrollbar-corner {
    background: #f1f1f1;
}


.scroll-btn {
    position: fixed;
    right: 20px;
    z-index: 1000;
    background-color: rgba(79, 62, 99, 1);
    color: #fff;
    /* border: none; */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-btn:hover {
    opacity: 1;
    background-color: #927EA7ff !important;
}

.scroll-top {
    bottom: 80px;
}

.scroll-bottom {
    bottom: 20px;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.card-custom i {
    color: #927EA7ff !important;

}

.card-custom h3 {
    color: #4F3E63ff !important;

}



@media (min-width: 768px) {

    .no-mobile,
    .not-mobile {
        display: block;
        /* Lub inline/inline-block w zależności od elementu */
    }

    .mobile {
        display: none;
    }

    .home-container2 {
        width: 80vw;
        margin: auto auto;
    }

}

@media (max-width: 767px) {

    .no-mobile,
    .not-mobile {
        display: none;
        /* Lub inline/inline-block w zależności od elementu */
    }

    .mobile {
        display: block;
    }

    /* .container {
        padding: 0 !important;
    } */

    .home-container {
        margin: 0 auto;
        width: 100%;
        max-width: 1200px;
        /* Zapobiega nadmiernemu rozszerzaniu na dużych ekranach */
    }


}

/* ===== NOWE KLASY CSS ZASTĘPUJĄCE STYLE INLINE ===== */

/* Layout i pozycjonowanie */
.body-background {
    background-color: #d7dee6;
}

.float-back-z-index {
    z-index: 1;
}

.float-back-btn {
    width: 50px;
    height: 50px;
}

.fab-container {
    bottom: 20px !important;
    z-index: 9;
    right: 3.5rem;
}

.fab-button {
    width: 50px;
    height: 50px;
}

/* Footer styles */
.footer-logged {
    position: relative;
    left: 0.5rem;
    width: 100vw;
    bottom: 0;
    z-index: 4;
    background: #4F3E63ff !important;
    color: #d1e3ff;
    border-top: 2px solid #4F3E63ff !important;
}

.footer-logged-fixed {
    position: fixed;
    left: 0;
    width: 100vw;
    bottom: 0;
    z-index: 4;
    background: #4F3E63ff !important;
    color: #d1e3ff;
    border-top: 2px solid #4F3E63ff !important;
}

.footer-relative {
    position: relative;
    z-index: 1;
    background: #927EA7ff;
    color: #d1e3ff;
    border-top: 2px solid #4F3E63ff;
}

.footer-link {
    color: #d1e3ff;
    text-decoration: underline;
}

/* Modal i overlay */
.cookie-modal {
    background: rgba(0, 0, 0, 0.5);
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.overlay-content {
    z-index: 2;
    position: relative;
}

.notes-container {
    position: absolute;
    padding-bottom: 4.5rem;
}

/* Header styles */
.header-articles {
    background: #071d3a;
    color: #fff;
    border-bottom: 2px solid #34567a;
}

.admin-badge {
    color: red;
    font-weight: bold;
}

.user-nick {
    opacity: 0.8;
}

.premium-star {
    color: yellow;
}

.logo-size {
    width: 5rem;
}

.header-icon {
    font-size: 1.5rem;
    color: #fff;
}

/* Login styles */
.diagonal-bg {
    background: linear-gradient(135deg, rgba(79, 62, 99, 0.7) 50%, rgba(255, 255, 255, 0.8) 50%);
    padding: 0;
    margin: 0 auto;
    width: 100%;
    padding-top: 5rem;
    /* Dostosowane do wysokości menu (logo 3rem + padding 2rem) */
}

@media (max-width: 768px) {
    .diagonal-bg {
        padding-top: 0;
        /* Na mobile nie ma potrzeby dodatkowego paddingu */
    }
}

.mobile-spacer {
    height: 5rem;
}

.login-card-header {
    padding-top: 1rem;
}

.login-card-header-white {
    border-bottom: 0;
    color: #fff;
}

.login-card-header-transparent {
    background-color: rgba(0, 0, 0, 0);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0;
}

.login-text-center {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Home page styles */
.home-about-bg {
    background: url(/bg-subs.png);
}

.home-about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.card-custom-full-height {
    height: 100%;
}

/* Article styles */
.article-card-img {
    object-fit: cover;
    height: 200px;
}

.article-header {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-bottom: none;
}

.article-content {
    background-color: #1a2531;
    color: lightgray;
    text-align: justify;
    border: 1px solid rgba(255, 255, 255, .2);
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    border-top: none;
}

.article-form-bg {
    background-color: #1a2531;
}

.article-img-thumb {
    max-height: 200px;
}

/* Todo list styles */
.todo-container {
    margin-top: 7rem;
}

.todo-input-width {
    width: 250px;
}

.todo-task-title {
    text-decoration: none;
    font-size: 1.1rem;
    width: 200px;
}

.todo-task-completed {
    text-decoration: line-through;
}

.todo-progress-width {
    width: 60px;
}

/* Notes styles */
.notes-form-container {
    max-width: 600px;
    z-index: 9999;
}

.notes-alert {
    max-width: 600px;
}

.notes-card {
    max-width: 600px;
    width: 100%;
}

.notes-rich-editor {
    display: none;
}

.notes-quill-editor {
    height: 300px;
}

.notes-icon-large {
    font-size: 2rem;
}

.notes-header-gradient {
    background: linear-gradient(135deg, #4F3E63, #6A4C93);
}

.main-content {
    background: #d7dee6;
    min-height: calc(100vh - 5rem);
    overflow-y: auto;
    padding: 10px;
}

.user-role-z-index {
    z-index: 0;
}

.back-btn-height {
    height: 3rem;
}

.payment-img {
    max-width: 400px;
}

/* Progress styles */
.progress-fill-full {
    width: 100%;
}

.progress-container-start {
    align-items: start;
}

.progress-line-hidden {
    opacity: 0;
}

.row-margin-left {
    margin-left: 1rem;
}

/* Pagination styles */
.page-input {
    border-radius: 0;
}

/* Context menu styles */
.context-menu-link {
    text-decoration: none;
    color: inherit;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .no-mobile-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .no-mobile-mobile {
        display: block;
    }
}

/* Mail styles */
.mail-container-margin {
    margin-top: 7rem;
}

.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    min-width: 150px;
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.context-menu li:hover {
    background-color: #f5f5f5;
}

.context-menu a {
    color: #333;
    text-decoration: none;
    display: block;
    width: 100%;
}

@media (max-width: 900px) {
    .main-content {
        padding: 0 !important;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.popup-header {
    background: linear-gradient(135deg, #4F3E63, #6A4C93);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 95%;
    }

    .popup-content {
        padding: 1rem;
        max-height: calc(95vh - 100px);
    }

    .popup-header {
        padding: 0.75rem 1rem;
    }

    .popup-header h3 {
        font-size: 1.1rem;
    }
}