/* Definicja zmiennych dla trybu jasnego (domyślnego) i ciemnego */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: gray;
    --panel-bg: #dddddd;
    --panel-text: #000000;
    --panel-text-hover: #09005e;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,.12);
    --input-bg: #f7fbff;
    --input-border: #bcd8ff;
    --input-text: #000000;
    --input-hover-bg: #ffffff;
    --input-hover-border: #64a9ff;
    --input-focus-border: #1976d2;
    --input-focus-shadow: rgba(25,118,210,.18);
    --btn-bg: linear-gradient(135deg,#1565c0,#42a5f5);
    --btn-text: #ffffff;
    --btn-shadow: rgba(25,118,210,.30);
    --btn-hover-shadow: rgba(25,118,210,.40);
    --hero-text: #000000;
    --hero-accent: #4f8cff;
    --banner-bg: linear-gradient(135deg, rgba(255,217,0,0.25), rgba(255,255,255,0.08));
    --info-card-bg: rgba(255,255,255,0.08);
    --info-card-hover: translateY(-10px);
    --register-bg: #4f8cff;
    --register-text: #111111;
    --register-btn-bg: #111111;
    --register-btn-text: #ffffff;
    --kafelek-bg: #ffffff;
    --kafelek-border: #cccccc;
    --kafelek-shadow: #aaaaaa;
    --modal-bg: #ffffff;
    --modal-shadow: #555555;
    --modal-close-bg: #ffffff;
    --modal-close-text: #000000;
    --tag-bg: #2b7cff;
    --tag-text: #ffffff;
    --clock-bg: rgba(17,24,39,.95);
    --clock-text: #ffffff;
    --clock-desc: #c7c7c7;
    --clock-menu-bg: rgb(5, 5, 5);
    --clock-menu-border: #0cf1f1;
    --clock-menu-hover: #0cd689;
    --tags-box-border: #cccccc;
    --event-bg: #ffffff;
    --event-text: #333333;
    --event-border: #dddddd;
    --event-shadow: rgba(0,0,0,0.15);
    --event-title: #111111;
    --event-secondary: #555555;
    --txt-inputs: #f1f1f1;
    --accordeon-bg: #f7f7f7;
    --header-bg: #f3f3f3;
    --color-nav-header: #065d80;
    --info-bg: #f3f6fb;
    --info-border: #d9e2ef;
    --info-text: #1f2937;
    --button-hover: #ebebeb;
    --light-mode-select:#ff0000;
    --dark-mode-select:#000000;
}

/* Zmienne dla trybu ciemnego */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #dbdbdb;
    --text-muted: #aaaaaa;
    --panel-bg: #1a1a1a;
    --panel-text: #b89d6c;
    --panel-text-hover: #ffffff;
    --card-bg: #1e1e1e;
    --card-shadow: rgba(0,0,0,.5);
    --input-bg: #2c2c2c;
    --input-border: #444444;
    --input-text: #d6d6d6;
    --input-hover-bg: #333333;
    --input-hover-border: #64a9ff;
    --input-focus-border: #4f8cff;
    --input-focus-shadow: rgba(79,140,255,.25);
    --btn-bg: linear-gradient(135deg,#0d47a1,#1976d2);
    --btn-text: #ffffff;
    --btn-shadow: rgba(0,0,0,.4);
    --btn-hover-shadow: rgba(0,0,0,.6);
    --hero-text: #e0e0e0;
    --hero-accent: #64a9ff;
    --banner-bg: linear-gradient(135deg, rgba(255,217,0,0.15), rgba(255,255,255,0.05));
    --info-card-bg: rgba(255,255,255,0.05);
    --register-bg: #1976d2;
    --register-text: #ffffff;
    --register-btn-bg: #ffffff;
    --register-btn-text: #111111;
    --kafelek-bg: #1e1e1e;
    --kafelek-border: #333333;
    --kafelek-shadow: #000000;
    --modal-bg: #1e1e1e;
    --modal-shadow: #000000;
    --modal-close-bg: #333333;
    --modal-close-text: #ffffff;
    --tag-bg: #1976d2;
    --tag-text: #ffffff;
    --clock-bg: rgba(0,0,0,.95);
    --clock-text: #ffffff;
    --clock-desc: #aaaaaa;
    --clock-menu-bg: #1a1a1a;
    --clock-menu-border: #009688;
    --clock-menu-hover: #00796b;
    --tags-box-border: #444444;
    --event-bg: #1e1e1e;
    --event-text: #eeeeee;
    --event-border: #3a3a3a;
    --event-shadow: rgba(0,0,0,0.5);
    --event-title: #ffffff;
    --event-secondary: #bbbbbb;
    --txt-inputs: #282828;
    --accordeon-bg: #323232;
    --header-bg: #282828;
    --color-nav-header: #D9D9D9;
    --info-bg: rgba(255,255,255,0.08);
    --info-border: rgba(255,255,255,0.15);
    --info-text: #f3f4f6;
    --button-hover: #202020;
    --light-mode-select:#b89d6c;
    --dark-mode-select:#ff0000;
    .calendar-btn { background: #333; color: #fff; border-color: #444; }
    .day-header { background: #222; color: #fff; }
    .calendar-day { border-color: #333; }
    #calendar-container { background: #1a1a1a; }

}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}
.hidden{
    display:none !important;
}

details{
    color:#e3f2fd;
}
.opis{
    color: var(--text-muted);
}
/* Panel boczny */
.nav_header {
    color: var(--color-nav-header) !important;
}

textarea {
    font-family:Arial, Helvetica, sans-serif;
}


.info_user {
    display: inline-block;
    padding: 4px 10px;

    color: var(--info-text)!important;
    background: var(--info-bg)!important;

    border: 1px solid var(--info-border)!important;
    border-radius: 8px;

    font-weight: 550;
    font-size: 14px;

    transition:
        background .2s,
        border-color .2s,
        color .2s,
        box-shadow .2s;
}

.info_user_div {
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
    
    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.historia_logowania_div
{
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
    
    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.dashed_under_title
{
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
    
    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.date-range-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between; 
    gap: 15px;
    padding: 5px 0; 
    width: 100%;
}

.date-range-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.date-range-container input[type="date"] {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.date-range-container input[type="date"]:focus {
    border-color: #007bff;
    background-color: rgba(255, 255, 255, 0.1);
}

.date-range-container button {
    flex-basis: 100%;
    margin-top: 5px;
}


.new_password_div {
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.new_password_div .wiersz {
    margin-bottom: 0;
    width: 85%;
}

.new_password_div button {
    margin: 15px 0;
}

.info_user:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

button {
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--button-hover);
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    background-color: var(--button-hover);
}


/* Unikalny kontener do zwijania/rozwijania */
.sn-acc-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  overflow: hidden;
}

/* Stan rozłożony */
.sn-acc-trigger.sn-acc-open + .sn-acc-wrapper {
  grid-template-rows: 1fr;
}

/* Wewnętrzna część wymagana dla mechanizmu CSS Grid */
.sn-acc-content {
  min-height: 0;
}

/* Obrót strzałki */
.sn-acc-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.sn-acc-trigger.sn-acc-open .sn-acc-arrow {
  transform: rotate(180deg);
}

/* Wcięcie podlinków */
.sn-acc-content a {
  padding-left: 25px;
}


.sidenav{
    height:100%;
    width:0;
    position:fixed;
    top:0;
    right:0;
    background: var(--panel-bg);
    overflow-x:hidden;
    transition:.5s;
    z-index:1000;
    padding-top:60px;
    box-sizing:border-box;
    z-index: 9999;
}

.sidenav a{
    display:block;
    padding:10px 25px;
    color: var(--panel-text);
    text-decoration:none;
    font-size:20px;
    transition:.3s;
}

.sidenav a:hover{
    color: var(--panel-text-hover);
}

.sidenav .closebtn{
    position:absolute;
    top:10px;
    right:20px;
    font-size:45px;
    cursor:pointer;
    color:white;
}

#user_panel{
    color:white;
    padding:20px;
}

#main{
    padding:20px;
}

.menuBtn{
    position:fixed;
    top:15px;
    right:15px;
    font-size:30px;
    cursor:pointer;
    user-select:none;
    color: var(--text-color);
    z-index: 9999;
}

.logout-panel {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 90%;
    padding: 18px;

    background: linear-gradient(135deg, #1565c0, #42a5f5);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);

    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.user-avatar {
    height: 100%;
    display: flex;
    align-items: center;
}

.user-avatar img {
    height: 4.5em;     /* wysokość zależna od rozmiaru tekstu */
    width: 4.5em;      /* zachowuje proporcje */
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.logged-text {
    font-size: 10px;
    opacity: .9;
    margin-bottom: 3px;
}

.username {
    font-size: 16px;
    margin-bottom: 10px;
}

.user-info form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    padding: 10px 0;
    background: white;
    color: #1565c0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

.logout-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.auth-container{
    width:100%;
    padding:20px;
    box-sizing:border-box;
}

#user_panel{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:20px;
    box-sizing:border-box;
}

.auth-card{
    width:100%;
    box-sizing:border-box;

    background: var(--card-bg);
    border-radius:18px;
    padding:25px;

    box-shadow:0 8px 20px var(--card-shadow);
    font-size:14px;
    color: var(--text-color);
}

/* wszystkie teksty formularza */
.auth-card p,
.auth-card label,
.auth-card h2{
    color: var(--text-color);
}

/* mniejsze nagłówki */
.auth-card h2{
    font-size:22px;
    margin:0 0 15px;
    text-align:center;
}

/* opisy nad polami */
.auth-card p{
    margin:8px 0 5px;
    font-size:13px;
    font-weight:600;
}

/* pola */
.auth-card input,
.auth-card select{
    width:100%;
    box-sizing:border-box;
    padding:14px 16px;

    font-size:15px;
    color: var(--input-text);

    border:2px solid var(--input-border);
    border-radius:14px;

    background: var(--input-bg);
    outline:none;
    transition:all .25s ease;
}

/* placeholder */
.auth-card input::placeholder{
    color:#777;
    font-size:13px;
}

.auth-card input:hover,
.auth-card select:hover{
    border-color: var(--input-hover-border);
    background: var(--input-hover-bg);
}

.auth-card input:focus,
.auth-card select:focus{
    border-color: var(--input-focus-border);
    background: var(--input-hover-bg);
    box-shadow:0 0 0 4px var(--input-focus-shadow);
}

/* przycisk */
.auth-card button{
    width:100%;
    padding:14px;
    margin-top:12px;

    font-size:16px;
    font-weight:bold;
    border:none;
    border-radius:14px;

    background: var(--btn-bg);
    color: var(--btn-text);
    cursor:pointer;
    transition:all .2s ease;
    box-shadow:0 6px 16px var(--btn-shadow);
}

.auth-card button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 22px var(--btn-hover-shadow);
    filter:brightness(1.05);
}

.auth-card button:active{
    transform:scale(.98);
}

.auth-card form{
    width:100%;
}

.hero{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
    text-align:center;
    color: var(--hero-text);
}

.hero-title h1{
    font-size:60px;
    margin-bottom:15px;
}

.hero-title h1 span{
    color: var(--hero-accent);
}

.hero-title h2{
    font-size:32px;
    font-weight:500;
    max-width:900px;
    margin:auto;
}

.hero-text{
    max-width:850px;
    margin:50px auto;
    font-size:21px;
    line-height:1.7;
}

.hero-text strong{
    color: var(--hero-accent);
}

.main-banner{
    margin:50px auto;
    padding:45px;
    border-radius:25px;
    background: var(--banner-bg);
}

.main-banner h2{
    font-size:40px;
}

.main-banner p{
    font-size:22px;
}

.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:60px;
}

.info-card{
    width:300px;
    padding:30px;
    border-radius:25px;
    background: var(--info-card-bg);
    backdrop-filter:blur(15px);
    transition:0.3s;
}

.info-card:hover{
    transform: var(--info-card-hover);
}

.info-card h3{
    font-size:27px;
    color: var(--hero-accent);
}

.info-card p{
    font-size:18px;
    line-height:1.6;
}

.future{
    max-width:900px;
    margin:80px auto;
    font-size:21px;
    line-height:1.8;
}

.future h2{
    text-align:center;
    font-size:40px;
    margin-bottom:35px;
}

.register-box{
    margin-top:80px;
    padding:50px;
    border-radius:30px;
    background: var(--register-bg);
    color: var(--register-text);
}

.register-box p{
    font-size:22px;
}

.register-box a{
    display:inline-block;
    margin-top:30px;
    padding:18px 50px;
    border-radius:40px;
    background: var(--register-btn-bg);
    color: var(--register-btn-text);
    text-decoration:none;
    font-size:22px;
    transition:0.3s;
}

.register-box a:hover{
    transform:scale(1.05);
}

@media(max-width:700px){
    .hero-title h1{
        font-size:40px;
    }
    .hero-title h2{
        font-size:22px;
    }
    .main-banner h2,
    .future h2,
    .register-box h2{
        font-size:28px;
    }
}

#zegar{
    position:fixed;
    top:20px;
    left:20px;
    background: var(--clock-bg);
    color: var(--clock-text);
    padding:12px 18px;
    border-radius:18px;
    font-family:Arial,sans-serif;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    user-select:none;
    cursor:move;
    z-index:9999;
}

.opis{
    font-size:11px;
    letter-spacing:2px;
    color: var(--clock-desc);
    margin-bottom:4px;
    font-weight:600;
}

#czas{
    font-size:26px;
    font-weight:bold;
}
#menuZegara{
    display:none;
    position:fixed;
    background: var(--clock-menu-bg);
    border:1px solid var(--clock-menu-border);
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    z-index:10000;
    min-width:160px;
}

#ukryjZegar{
    padding:10px 15px;
    cursor:pointer;
    color: var(--clock-text);
}

#ukryjZegar:hover{
    background: var(--clock-menu-hover);
}

#event-info {
    margin-top: 20px;
    padding: 25px;

    background: var(--event-bg);
    color: var(--event-text);

    border-radius: 15px;
    border: 1px solid var(--event-border);

    box-shadow: 0 5px 20px var(--event-shadow);

    max-width: 90%;
    margin-left: auto;
    margin-right: auto;

    font-family: Arial, sans-serif;

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


#event-info h2 {
    margin-top: 0;
    color: var(--event-title);
    font-size: 28px;
}


#event-info img {
    max-width: 160px;
    max-height: 160px;

    border-radius: 12px;

    object-fit: cover;

    margin: 15px 0;
}


#event-info p {
    color: var(--event-text);
    font-size: 16px;
    line-height: 1.6;
}


#event-info b {
    color: var(--event-secondary);
}


/* Kalendarz Styles */
#calendar-container {
    max-width: 1000px;
    margin: auto;
    background: var(--bg-color, #fff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-btn {
    padding: 8px 15px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
}

.calendar-btn:hover {
    background: #ddd;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #f0f0f0;
    border-radius: 5px;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    background: transparent;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.calendar-day.today {
    border: 2px solid #00ff0d;
    background: rgba(67, 160, 71, 0.05);
}

.calendar-day.today::before {
    content: "Dzisiaj";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 10px;
    color: #00ff0d;
    font-weight: bold;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.adm_title {
    text-align: center;
}

#UD_ownership {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100vw;
    height: 60px;
    background-color: #252525;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin: 0px;
}



/*styl - ustawienia*/


.settings_txtarea {
    border: none;
    border-radius: 5px;
    color: var(--input-text);
    background-color: var(--txt-inputs);
    width: 100%;
    box-sizing: border-box;

    padding: 0px;
}

textarea.settings_txtarea {
    padding: 5px;
    margin-top: 10px;
    resize: none;
    height: 100px;
    display: block;
}

textarea::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder {
    font-family:Arial, Helvetica, sans-serif;
    color: #c0c0c0;
    user-select: none;
}

.settings_button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    color: var(--input-text);
    background-color: var(--txt-inputs);
    cursor: pointer;
}

#zakladki {
    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 5px;
}

.zakladka {
    width: 600px;
}

.naglowek {
    padding: 15px;
    background: var(--header-bg);
    font-weight: 550;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: border-radius 0s;
}

.zakladka:first-child .naglowek {
    border-radius: 10px 10px 0 0;
}

.zakladka:last-child .naglowek:not(.aktywna) {
    border-radius: 0 0 10px 10px;

    transition: border-radius 0.1s 0.2s;
}

.zakladka:last-child .tresc.otwarta {
    border-radius: 0 0 10px 10px;
}

.tresc {
    padding: 0 15px;
    background: var(--accordeon-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease-out;
}

.tresc_subdiv{
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.tresc.otwarta {
    padding: 15px;
}

.naglowek span {
    transition: transform 0.2s;
}

.naglowek.aktywna span {
    transform: rotate(180deg);
}

#siteadduser {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

#adduserform {
    width: 85%;
    max-width: 85%;
    padding: 20px 15px 15px 15px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;

    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.wiersz {
    display: flex;
    align-items: center;

    gap: 8px;
    width: 100%
}

#ustawieniaForm {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.wiersz input {
    box-sizing: border-box;
    flex: 1;
}

.sett-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-color);
}

.wiersz input[type="checkbox"], label input[type="checkbox"] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;

    border-radius: 4px;
    border: 1px solid var(--input-text);
    background: var(--txt-inputs);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.checkmark svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: var(--input-text);
    stroke-width: 3;

    transform: scale(0);
    transition: transform 0.15s ease;
}

.wiersz input[type="checkbox"]:checked + .checkmark svg, label input[type="checkbox"]:checked + .checkmark svg {
    transform: scale(1);
}

/* input[type="checkbox"] {
    width: 20px;
    height: 20px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 4px;
    border: 1px solid var(--input-text);
    background: var(--txt-inputs);
    cursor: pointer;
    margin: 3px 10px;
    box-sizing: border-box;
    flex: 0 0 20px;

    position: relative;
}

input[type="checkbox"]::before {
    content: "✓";

    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
    color: var(--input-text);

    transform: scale(0);
    opacity: 0;

    transition: 
        transform 0.15s ease,
        opacity 0.15s ease;
}


input[type="checkbox"]:checked::before {
    transform: scale(1);
    opacity: 1;
} */

.overlay {
    position: fixed;
    inset: 0;
    background: rgb(0, 0, 0, 0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    
    visibility: hidden;
    opacity: 0;

    transition: 
        opacity 0.1s ease,
        visibility 0s linear 0.1s;
}



.overlay.aktywne, .overlay.aktywny {
    visibility: visible;
    opacity: 1;
    
    transition-delay: 0s;
}


.okno {
    width: 500px;
    padding: 20px;
    background: var(--accordeon-bg);
    color: var(--input-text);
    font-weight: 600;
    position: relative;
    box-sizing: border-box;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.overlay.aktywne .okno {
    transform: scale(1);
}

.win-close-btn {
    border: none;
    border-radius: 5px;
    width: 25px;
    height: 25px;
    font-weight: 600px;
    font-size: 30px;
    background: var(--accordeon-bg);
    color: var(--input-text);

    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;

    cursor: pointer;
}

#login_edit_btn, #email_edit_btn {
    margin-top: 0px;
}

.info_wiersz {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info_wiersz_right {
    display: flex;
    gap: 10px;
}

.middle_text {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--txt-inputs);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    margin: 0;
    width: 85%;
    box-sizing: border-box;
}

#uneditable_user_data, #editable_user_data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#uneditable_user_data .wiersz {
    justify-content: space-between;
}

#editable_user_data {
    margin: 15px 0 30px 0;
}

#uneditable_user_data {
    margin-bottom: 15px;
}

input[type="text"]{
    padding: 0 5px;
}

#change_user_password {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;

    margin: 15px 0;
}

/*koniec stylu*/


/*styl stron "na czasie"*/


.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 20px;
}

.kafelek{
    border:1px solid var(--kafelek-border);
    border-radius:15px;
    padding:15px;
    cursor:pointer;
    transition:.2s;
    background: var(--kafelek-bg);
}

.kafelek h2{
    margin:0;
    white-space:normal;
    overflow-wrap:break-word;
    word-break:break-word;
}

.kafelek:hover{
    transform:scale(1.03);
    box-shadow:0 5px 20px var(--kafelek-shadow);
}

.kafelek img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10%;
}

.modal {
    width:90vw;
    height:90vh;
    position: relative;
    display: flex;
    flex-direction: column;

    border-radius:15px;
    background: var(--modal-bg);
    
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.overlay.aktywny .modal {
    transform: scale(1);
}

/* tutaj edytowane */
.zamknij {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    cursor: pointer;

    user-select: none;
    
    color: var(--modal-close-text);
    
    font-size: 45px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.modal img{
    max-width:400px;
    max-height:400px;
    border-radius:10px;
}

.modal_header {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    
    background-color: var(--txt-inputs);
    color: var(--text-color);
    border-radius: 15px 15px 0 0;
    
    position: relative; /* Pozwala dzieciom pozycjonować się względem tego kontenera */
    display: flex;
    justify-content: center; /* Trzyma <h1> idealnie na środku */
    align-items: center;
    
    flex: 0 0 70px;
}

.modal_header h1 {
    margin: 0;
}

.modal_header .like-container {
    position: absolute;
    left: 15px; /* Odległość od lewej krawędzi (dostosuj np. do paddingu modala) */
    
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0; /* Zerujemy marginesy, bo pozycję pionową załatwia flex/absolute */
}

/*tutaj edytowne*/
.modal_content {
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal_content::-webkit-scrollbar {
    display: none;
}

/*tutaj edytowne*/
.modal_bottom {
    background-color: var(--txt-inputs);
    color: var(--text-color);
    border-radius: 0 0 15px 15px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;

    flex: 0 0 70px;

    padding: 0 30px;
    height: 50px;
    width: 100%;
}


.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-flex;
    width: fit-content;
    margin: 3px;
    white-space: nowrap;
}

.tag p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
}

.modal_content_wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.comment_section {
    width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;

    border-radius: 15px;
    background-color: var(--accordeon-bg);
    color: var(--text-color);

    transform: translateX(340px);
    
    transition: transform 0.25s ease-out;

    padding-bottom: 10px;
}

.comment_section:hover {
    transform: translateX(335px);
}

.comment_section.otwarta {  
    transform: translateX(-10px);

    overflow-y: auto;
    overflow-x: hidden;
}

.comment_list {
    width: 400px;
    overflow: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;

    transition: opacity 0.1s;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.comment_list::-webkit-scrollbar {
    display: none;
}

.comment_section.otwarta .comment_list {
    opacity: 1;
    visibility: visible;
}

.comment_section_header {
    padding: 15px;
    width: 100%;
    height: 60px;
    border-bottom: none;

    flex: 0 0 60px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
}

.comment_section.otwarta .comment_section_header {
    border-bottom: 3px solid var(--txt-inputs);
}

.comment_section_icon {
    width: 30px;
    height: 30px;
    visibility: visible;
    padding: 0;

    border: none;
    background: transparent;

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--text-color);
}

.comment_section_icon:hover {
    background-color: var(--txt-inputs);
}

.comment_section:hover .comment_icon {
    scale: 1.03;
}

.comment_section.otwarta:hover .comment_icon {
    scale: 1;
}

.comment_icon {
    height: 30px;
    width: 30px;
    scale: 1;
    stroke-width: 7;

    transition: color 0.2s ease, scale 0.2s;
}

.comments_title {
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-weight: 600;
}

.comment_section_closebtn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;

    user-select: none;
    color: var(--modal-close-text);
    font-size: 35px;

    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;

    overflow: hidden;
    visibility: hidden;
}

.comment_section_closebtn:hover {
    background: transparent;
}

.comment_section.otwarta .comment_section_closebtn {
    visibility: visible;
}

.comment {
    display: grid;
    width: 100%;
    grid-template-columns: 54px 1fr 30px;
    gap: 10px;

    .author-badge {
        padding: 2px;
        box-shadow: 0 0 0 0;
        margin: 10px;
        max-width: 40px;
        max-height: 40px;
    }

    .author-badge:hover {
        box-shadow: 0 0 0 0;
        transform: translateY(0);
    }

    b a {
        position: relative;
        text-decoration: none;
        color: var(--text-color);
    }

    b a::before, b a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        width: 45%;
        height: 1px;
        background: currentColor;

        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    b a::before {
        right: 50%;
        transform-origin: right;
    }

    b a::after {
        left: 50%;
        transform-origin: left;
    }

    b a:hover::before, b a:hover::after {
        transform: scaleX(1);
    }

    g {
        display: block;
    }

    g b {
        margin-right: 5px;
    }

    g span {
        margin: 0;
        margin-top: 2px;
    }

    p {
        margin: 10px 0;
    }
}

.comment.show {
    animation: fileAppear 0.3s ease forwards;
}

.comment.delete {
    animation: fileDisappear 0.3s ease forwards;
}

.comment_content {
    text-align: left;
    padding-top: 10px;
}

.commentForm {
    visibility: hidden;
    margin-top: auto;

    width: 100%;
    border-top: var(--txt-inputs) solid 3px;
    box-sizing: border-box;

    padding: 15px;

    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;
    transition: visibility 0s 0.15s;
}

.comment_section.otwarta .commentForm {
    visibility: visible;

    transition-delay: 0s;
}

.comment_menu {
    position: relative;
    width: 30px;
    height: 30px;
    padding-top: 8px;
}

.comment_menu_icon {
    width: 20px;
    height: 20px;
    stroke-width: 0px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.comment_menu_icon:hover {
    cursor: pointer;
}

.comment_menu_window {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    width: 150px;
    height: 60px;
    z-index: 1000;
    
    transform: scale(0.97);
    
    transition: 
        opacity 0.1s,
        transform 0.1s,
        visibility 0s linear 0.1s;
    }
    
.comment_menu_window.otwarta {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: 
        opacity 0.1s,
        transform 0.1s,
        visibility 0s;
}

.selfDeleteCommentBtn {
    border: none;
    border-radius: 10px;
    height: 40px;
    margin: 5px;
}

.commentForm button {
    border: none;
    padding: 0;
    background: transparent;
    position: relative;

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;


    border-radius: 100%;
    color: var(--text-color);
}

.commentForm button:hover {
    background-color: var(--text-muted);
}

.comment_send_icon {
    width: 30px;
    height: 30px;
    scale: 1;

    position: absolute;
    top: 11px;
    right: 11px;

    transition: scale 0.2s;
}

.commentForm textarea {
    background-color: var(--txt-inputs);

    resize: none;
    box-sizing: border-box;

    border: none;
    border-radius: 10px;

    margin-left: 10px;
}

.commentForm span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delpostBtn {
    border: 1px dashed #a0a0a0;
    border-radius: 10px;
    height: 40px;
    width: 100px;
    cursor: pointer;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content; /* dopasuj do zawartości */
    max-width: 100%;
    padding: 6px 14px 6px 8px;
    background: linear-gradient(135deg, #03fd80, #6e9aeb);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.3s ease;
    margin: 10px 0;
}


.author-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    white-space: nowrap; /* tekst nie będzie łamał się */
}

.profilowe {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.add_post_div {
    position: relative;
    margin: 20px 0;
}

.add_post_div .naglowek {
    max-height: 50px;
    border-radius: 20px;

    transition: border-radius 0.1s 0.2s;
}

.add_post_div .naglowek.aktywna {
    border-radius: 20px 20px 0 0;

    transition: border-radius 0s;
}

.add_post_div .tresc {
    border-radius: 0 0 20px 20px;
}

.add_post_div h2 {
    font-size: 20px;
}

.post_dropzone {
    width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}

.dropzone_div, .post_dropzone .middle_text {
    width: 500px;
}

.dropzone_div {
    border: 3px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;

    padding: 20px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dropzone {
    height: 350px;
    width: 350px;

    border-radius: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

    cursor: pointer;

    transition: 
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s;
}

/*animacja dropzone*/

.dropzone_border {
    position: absolute;
    inset: 0;

    overflow: hidden;
    border-radius: 25px;

    pointer-events: none;
}

.dropzone_border::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;

    width: 200%;
    height: 200%;

    background: conic-gradient(
        transparent,
        #4bb7ff,
        transparent
    );

    z-index: 0;
    animation: spin 1s linear infinite;
    animation-play-state: paused;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropzone_border::after {
    content: "";
    position: absolute;

    inset: 3px;
    background-color: var(--accordeon-bg);
    border-radius: 22px;

    z-index: 1;
    pointer-events: none;
}

.dropzone.dragover {
    background-color: var(--txt-inputs);
}

.dropzone.dragover .dropzone_border::before {
    opacity: 1;
    animation-play-state: running;
}

.dropzone.leaving .dropzone_border::before {
    opacity: 0;
    animation-play-state: running;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dropzone .dropzone_file_icon, .dropzone .dropzone_text {
    position: relative;
    z-index: 2;
}

.dropzone.dragover .dropzone_file_icon {
    transform: scale(1.04);
    color: #4bb7ff;
}

.dropzone:hover:not(.no-hover) .dropzone_file_icon {
    color: #4bb7ff;
}

.dropzone_file_icon {
    height: 100px;
    width: 100px;

    fill: none;

    transition: 
        transform 0.4s ease,
        color 0.4s ease;
}

/*koniec animacji*/

.dropzone h3, .dropzone p {
    margin: 0;
}

.dropzone_text {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: opacity 0.3s, transform 0.3s;
}

.dropzone_text .wiersz {
    display: grid;
    grid-template-columns: 30px 200px 70px;
    justify-content: center;
    justify-items: center;
    align-items: center;

    background-color: var(--txt-inputs);
    border-radius: 10px;

    height: 30px;
}

.dropzone_text.show_file {
    animation: fileAppear 0.3s ease forwards;
}

@keyframes fileAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.file_deletebtn svg {
    color: rgb(201, 0, 0);

    width: 25px;
    height: 25px;

    cursor: pointer;
}

#szkola {
    width: 642px;
    height: 150px;
    
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    position: relative;
    
    padding: 8px;
    box-sizing: border-box;

    label {
        display: flex;
        align-items: center;

        gap: 8px;
        border-radius: 5px;

        cursor: pointer;
    }

    label:hover {
        background-color: var(--txt-inputs);
    }
}

#szkola_wrapper {
    width: 650px;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
}

#szkola_middle_text.middle_text {
    width: 650px;
}

#miasta {
    width: 642px;
    height: 150px;
    
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    position: relative;
    
    padding: 8px;
    box-sizing: border-box;

    label {
        display: flex;
        align-items: center;

        gap: 8px;
        border-radius: 5px;

        cursor: pointer;
    }

    label:hover {
        background-color: var(--txt-inputs);
    }
}

#miasta_wrapper {
    width: 650px;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
}

#miasta_middle_text.middle_text {
    width: 650px;
}

#klasa {
    width: 292px;
    height: 150px;

    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    position: relative;

    padding: 8px;

    box-sizing: border-box;
}

#klasa label {
    display: flex;
    align-items: center;

    gap: 8px;
    border-radius: 5px;

    cursor: pointer;
}

#klasa label:hover {
    background-color: var(--txt-inputs);
}

/* Chrome, Edge, Opera */
#klasa::-webkit-scrollbar, 
#miasta::-webkit-scrollbar, 
.fileBox::-webkit-scrollbar, 
#szkola::-webkit-scrollbar {
    width: 10px;
}

#klasa::-webkit-scrollbar-track, 
#miasta::-webkit-scrollbar-track, 
#szkola::-webkit-scrollbar-track {
    background: transparent;
    margin: -24px 0;
}

.fileBox::-webkit-scrollbar-track {
    background: transparent;
    margin: -12px 0;
}

#klasa::-webkit-scrollbar-thumb, 
#miasta::-webkit-scrollbar-thumb, 
.fileBox::-webkit-scrollbar-thumb, 
#szkola::-webkit-scrollbar-thumb {
    background-color: var(--txt-inputs);
    border-radius: 10px;
}

#klasa::-webkit-scrollbar-thumb:hover,
#miasta::-webkit-scrollbar-thumb:hover,
.fileBox::-webkit-scrollbar-thumb:hover, 
#szkola::-webkit-scrollbar-thumb:hover {
    background-color: var(--button-hover);
}

#klasa::-webkit-scrollbar-button,
#miasta::-webkit-scrollbar-button,
.fileBox::-webkit-scrollbar-button,
#szkola::-webkit-scrollbar-button {
    width: 0;
}

#klasa_wrapper {
    width: 300px;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
}

.post_recipients .middle_text {
    width: 300px;
}

.post_recipients {
    margin-top: 25px;
}

.post_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;

    width: 85%;
}

.post_title_input {
    padding: 15px;
    display: flex;
    width: 85%;
    box-sizing: border-box;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.post_title_input input {
    flex: 1;
    height: 30px;
    border: none;
    outline: none;

    background: transparent;

    resize: none;
    box-sizing: border-box;

    border: none;
    border-radius: 10px;
}

.post_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;

    margin-top: 25px;
}

.post_content_input {
    padding: 15px;
    display: flex;
    width: 85%;
    box-sizing: border-box;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.post_content_input textarea {
    flex: 1;
    height: 200px;

    background: transparent;

    resize: none;
    box-sizing: border-box;

    border: none;
    border-radius: 10px;
}

.post_content_input textarea:focus {
    outline: none;
    background-color: var(--button-hover);
}

.post_tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;

    margin-top: 25px;
}

#tagsBox {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid var(--tags-box-border);
    border-radius: 6px;
    padding: 8px;
    width: 85%;
    box-sizing: border-box;
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    border-radius: 0 0 15px 15px;
}

#tagInput {
    border: none;
    outline: none;
    height: 40px;

    flex: 1;
    min-width: 150px;
    background: transparent;
    color: var(--text-color);
}

.tag button {
    border: none;
    background: none;
    color: var(--tag-text);
    cursor: pointer;
    font-size: 16px;
}

.fileBox {
    height: 250px;
    width: 400px;
    overflow-y: auto;

    position: relative;
}

.attachment {
    overflow: hidden;
    transition:
        height .25s ease,
        opacity .25s ease,
        margin .25s ease,
        padding .25s ease;
}

.attachment .wiersz {
    display: grid;
    grid-template-columns: 30px 200px 70px;
    justify-content: center;
    justify-items: center;
    align-items: center;

    background-color: var(--txt-inputs);
    border-radius: 10px;

    height: 30px;
    width: 320px;

    margin-bottom: 5px;
}

.attachment.show_file {
    animation: fileAppear 0.3s ease forwards;
}

.empty_filebox_text.show_file {
    animation: fileAppear 0.3s ease forwards;
}

@keyframes fileDisappear
{
    from 
    {
        opacity: 1;
        max-height: 35px;
        transform: translateY(0px);
    }
    to
    {
        opacity: 0;
        max-height: 0;
        transform: translateY(10px);
    }
}

.attachment.delete_file {
    pointer-events: none;
    animation: fileDisappear 0.3s ease forwards;
}

.attachments_div .dropzone_div {
    height: 250px;
    width: 400px;

    border: none;
}

.attachments_content {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;

    width: 850px;
    border: 3px dashed var(--txt-inputs);
    border-top: none;
    box-sizing: border-box;
}

.attachments_div .middle_text {
    width: 850px;
}

.attachments_div {
    margin-top: 25px;
}

#broadcast {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hide_author {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 500px;
    left: 30px;
    bottom: 20px;
}

.tresc.otwarta .hide_author {
    transition-delay: 0.3s;
    visibility: visible;
    opacity: 1;
}

.add_post_btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;

    height: 30px;
    width: 100px;
    margin-top: 20px;
}

.modal_content .middle_text {
    width: 400px;
    margin-top: 20px;
}

.modal_attachments_div {
    border: 2px dashed var(--txt-inputs);
    border-top: none;
    width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
    padding-top: 10px;
}

.attach {
    a {
        position: relative;
        text-decoration: none;
        color: var(--text-color);
        font-size: 15px;
        font-weight: 600;
    }

    a::before, a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        width: 45%;
        height: 2px;
        background: currentColor;

        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    a::before {
        right: 50%;
        transform-origin: right;
    }

    a::after {
        left: 50%;
        transform-origin: left;
    }

    a:hover::before, a:hover::after {
        transform: scaleX(1);
    }
}

.attach {
    position: relative;
    margin: 10px 5px;
    width: 350px;
    height: 40px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.download_btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.download_btn:hover {
    background: transparent;
}

img {
    user-select: none;
}

/*koniec stylu*/


.historia_logowania_table {
    width: 100%;
    border-collapse: collapse;
}

.historia_logowania_table th,
.historia_logowania_table td {
    padding: 10px;
    text-align: left;
}

.historia_logowania_table thead {
    border-bottom: 2px dashed var(--txt-inputs);
}

.historia_logowania_table tbody tr {
    border-bottom: 2px dashed var(--txt-inputs);
}

.historia_logowania_table tbody tr:last-child {
    border-bottom: none;
}


/* Event Colors based on Zasieg */
.event-krajowy { background-color: #e53935; margin-bottom: 3px;  border-radius: 10px; padding: 4px;} /* Czerwony */
.event-wojewodzki { background-color: #1e88e5;  margin-bottom: 3px;  border-radius: 10px; padding: 4px;} /* Niebieski */
.event-miejski { background-color: #43a047;  margin-bottom: 3px;  border-radius: 10px; padding: 4px;} /* Zielony */
.event-szkolny { background-color: #a7a6a3; color: #333;  margin-bottom: 3px; border-radius: 10px; padding: 4px;} /* Żółty */
.event-administracja { background-color: #8e24aa;  margin-bottom: 3px; border-radius: 10px; padding: 4px; } /* Fioletowy */



/* --- Style Przycisków i Serca --- */
.like-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    margin-left: 15px; 
    width: calc(100% + 16px); 
}

.like-button:hover {
    background: transparent;
}

.like-post-form {
    display: inline;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.1s ease;
}

.like-button:active {
    transform: scale(0.9);
}

.heart-icon {
    width: 28px;
    height: 28px;
}

.heart-icon path {
    fill: rgba(255, 168, 168, 0);
    stroke: #a0a0a0;
    stroke-width: 2;

    transition:
        fill 0.3s ease,
        stroke 0.3s ease;
}

.like-button:hover .heart-icon path {
    stroke: rgb(255, 168, 168);
    fill: rgb(255, 168, 168);
}

/* Polubione */
.like-button.liked .heart-icon path {
    fill: #e74c3c;
    stroke: #e74c3c;
}

/* Animacja bicia serca */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
}

.like-button.animate .heart-icon {
    animation: heartBeat 0.6s ease-out;
}

.like-button.loading {
    opacity: 0.5;
    cursor: not-allowed;
}
/* STYL KARTY SESJI I AKORDEONU */
.sessions-card {
    border: 1px solid var(--kafelek-border);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    color: var(--text-color);
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--kafelek-border);
    padding-bottom: 10px;
    gap: 10px;
}

/* RESPONSYWNA I SKALUJĄCA SIĘ CZCIONKA NAGŁÓWKA */
.sessions-header h2 {
    margin: 0;
    /* clamp(min, pref, max) - płynne skalowanie fontu w zależności od szerokości ekranu */
    font-size: clamp(1.05rem, 2.5vw, 1.4rem); 
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.btn-logout-all {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-logout-all:hover {
    background-color: #bb2d3b;
}

/* AKORDEON STYLE */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-accordion {
    background: var(--accordeon-bg);
    border: 1px solid var(--kafelek-border);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.session-accordion[open] {
    background: var(--info-bg);
    border-color: var(--info-border);
}

.session-accordion.is-current {
    border-color: var(--hero-accent);
    background: var(--info-bg);
}

.session-summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none; /* Ukrywa domyślną strzałkę w WebKit */
    color: var(--text-color);
}

.session-summary::-webkit-details-marker {
    display: none; /* Ukrywa strzałkę na Safari/Chrome */
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Skalowanie czcionki dla nazwy urządzenia */
    font-size: clamp(0.85rem, 1.8vw, 1rem); 
}

.accordion-arrow {
    transition: transform 0.2s ease;
    stroke: var(--text-color);
}

.session-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
}

/* ZAWARTOŚĆ PO ROZWINIĘCIU */
.session-details {
    padding: 12px 16px;
    border-top: 1px solid var(--kafelek-border);
    background: var(--card-bg);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    color: var(--text-color);
    font-weight: 500;
}

.badge-current {
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.badge-active {
    background: var(--panel-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.sessions-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--kafelek-border);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-muted);
}

/* Kontener na powiadomienia */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Wygląd pojedynczego powiadomienia */
.toast {
    padding: 12px 24px;
    border-radius: 8px;
    background: #ffffff; /* W wersji dark mode użyj var(--card-bg) */
    color: #0f172a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb; /* Kolor domyślny (primary) */
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    min-width: 250px;
}

/* Warianty kolorystyczne */
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

/* Animacje */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}