:root {
    --bg-color: #ffffff;
    --accent-blue: #1a73e8;
    --gray-light: #f8f9fa;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background: var(--bg-color); 
    color: var(--text-main); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
}

html {
    -webkit-text-size-adjust: 100%; /* Blokuje automatyczne powiększanie tekstu przez system */
}

/* Nawigacja Górna */
.top-nav { width: 100%; max-width: 1100px; padding: 30px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-minimal { font-size: 22px; font-weight: 600; color: var(--accent-blue); letter-spacing: -0.5px; }
.nav-cluster { display: flex; background: var(--gray-light); padding: 5px; border-radius: 30px; }
.nav-btn { border: none; background: transparent; padding: 10px 24px; border-radius: 25px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-dim); transition: 0.3s; }
.nav-btn.active { background: #fff; color: var(--accent-blue); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.logout-minimal { font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 8px 16px; border-radius: 20px; }

/* Kontener Główny */
.hub-container { width: 100%; max-width: 850px; padding: 20px; }
.hub-header { display: flex; justify-content: center; margin-bottom: 40px; }

/* Pasek Postępu */
.progress-pill { display: flex; align-items: center; gap: 14px; background: var(--gray-light); padding: 10px 20px; border-radius: 50px; border: 1px solid var(--gray-border); }
.pill-label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; }
.pill-bar-bg { width: 120px; height: 6px; background: #e1e5ea; border-radius: 3px; overflow: hidden; }
.pill-bar-fill { height: 100%; background: var(--accent-blue); transition: 1s ease-in-out; }
.pill-value { font-weight: 600; font-size: 14px; color: var(--accent-blue); }

/* Centralny Input (Prompt) */
.prompt-area-centered { margin-bottom: 50px; }
.input-container-main { 
    background: var(--gray-light); padding: 8px 8px 8px 25px; border-radius: 50px; 
    display: flex; align-items: center; border: 1px solid transparent; transition: 0.3s; 
}
.input-container-main:focus-within { background: #fff; border-color: var(--border-input); box-shadow: 0 12px 30px rgba(0,0,0,0.05); }
.input-container-main input[type="text"] { flex: 1; border: none; background: transparent; font-size: 17px; outline: none; }

/* Wrapper Kontrolek (Dropdown + Data) */
.controls-wrapper { display: flex; align-items: center; gap: 8px; margin-right: 12px; }
.hidden { display: none !important; }

.select-wrapper select, .date-input-minimal {
    border: 1px solid var(--border-input); background: #fff; 
    padding: 10px 18px; border-radius: 25px; font-size: 13px; 
    font-weight: 500; color: var(--text-main); cursor: pointer; 
    outline: none; transition: 0.2s; font-family: inherit;
}
.select-wrapper select:hover, .date-input-minimal:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.submit-circle { 
    width: 46px; height: 46px; background: var(--accent-blue); border: none; 
    border-radius: 50%; color: white; font-size: 18px; cursor: pointer; transition: 0.2s; 
}
.submit-circle:hover { transform: scale(1.05); background: #1557b0; }

/* Pionowy Grid Listy */
.list-hub-vertical { display: flex; flex-direction: column; gap: 20px; }
.hub-card { background: var(--gray-light); padding: 30px; border-radius: 32px; border: 1px solid var(--gray-border); width: 100%; transition: 0.3s; }
.hub-card:hover { border-color: var(--border-input); background: #fafafa; }
.hub-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hub-emoji { font-size: 22px; }
.hub-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 600; }

/* Zadania */
.task-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.task-item:last-child { border-bottom: none; }
.task-item input { margin-right: 15px; width: 18px; height: 18px; accent-color: var(--accent-blue); cursor: pointer; }
.task-item span { font-size: 15px; flex: 1; }
.task-item.completed span { color: #bdc1c6; text-decoration: line-through; }
.task-date-badge { font-size: 10px; background: #e8f0fe; color: var(--accent-blue); padding: 3px 8px; border-radius: 10px; margin-left: 10px; font-weight: 600; }
.hub-empty { color: #bdc1c6; font-size: 13px; font-style: italic; }

/* Statystyki */
.stats-hub-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-big-card { background: var(--gray-light); padding: 40px; border-radius: 32px; text-align: center; border: 1px solid var(--gray-border); }
.big-percent { font-size: 60px; font-weight: 300; color: var(--accent-blue); margin: 15px 0; }
.subs-edit-hub { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 15px; }
.subs-edit-hub input { font-size: 32px; width: 180px; text-align: center; border: 1px solid var(--gray-border); border-radius: 18px; padding: 10px; }
.save-btn-hub { background: var(--accent-blue); color: white; border: none; padding: 12px 30px; border-radius: 25px; cursor: pointer; font-weight: 600; }

/* Stopka */
.hub-footer { margin: 60px 0; text-align: center; }
.reset-link { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; text-decoration: none; }






:root {
    --bg-color: #ffffff;
    --accent-blue: #1a73e8;
    --gray-light: #f8f9fa;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
    --danger: #d93025;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-color); color: var(--text-main); 
    display: flex; flex-direction: column; align-items: center; min-height: 100vh; 
}

/* Nav */
.top-nav { width: 100%; max-width: 1100px; padding: 25px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-minimal { font-size: 22px; font-weight: 700; color: var(--accent-blue); }
.nav-cluster { display: flex; background: var(--gray-light); padding: 5px; border-radius: 30px; }
.nav-btn { border: none; background: transparent; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.nav-btn.active { background: #fff; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Main Container */
.hub-container { width: 100%; max-width: 800px; padding: 20px; }
.hub-header { display: flex; justify-content: center; margin-bottom: 30px; }
.progress-pill { display: flex; align-items: center; gap: 12px; background: var(--gray-light); padding: 8px 16px; border-radius: 50px; border: 1px solid var(--gray-border); }
.pill-bar-bg { width: 100px; height: 6px; background: #e1e5ea; border-radius: 3px; overflow: hidden; }
.pill-bar-fill { height: 100%; background: var(--accent-blue); transition: 0.5s; }

/* Formularz - Spójne Dropdowny */
.prompt-area-centered { margin-bottom: 40px; }
.input-container-main { 
    background: var(--gray-light); padding: 8px 8px 8px 25px; border-radius: 50px; 
    display: flex; align-items: center; border: 1px solid transparent; 
}
.input-container-main input[type="text"] { flex: 1; border: none; background: transparent; font-size: 16px; outline: none; }

.controls-wrapper { display: flex; align-items: center; gap: 8px; margin-right: 10px; }
.hidden { display: none !important; }

/* Styl Dropdowna i Daty - identyczny wygląd */
.select-wrapper select, .date-input-minimal {
    border: 1px solid var(--border-input); background: #fff; 
    padding: 10px 16px; border-radius: 20px; font-size: 13px; 
    font-weight: 500; color: var(--text-main); cursor: pointer; 
    outline: none; font-family: inherit; -webkit-appearance: none;
}
.select-wrapper select:hover, .date-input-minimal:hover { border-color: var(--accent-blue); }

.submit-circle { 
    width: 44px; height: 44px; background: var(--accent-blue); border: none; 
    border-radius: 50%; color: white; font-size: 18px; cursor: pointer; flex-shrink: 0;
}

/* Karty i Zadania */
.list-hub-vertical { display: flex; flex-direction: column; gap: 20px; }
.hub-card { background: var(--gray-light); padding: 25px; border-radius: 24px; border: 1px solid var(--gray-border); }
.hub-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.hub-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

.task-item { 
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); 
}
.task-main-content { display: flex; align-items: center; flex: 1; }
.task-item input { margin-right: 15px; width: 18px; height: 18px; accent-color: var(--accent-blue); }
.task-item.completed span { color: #bdc1c6; text-decoration: line-through; }

/* Przyciski akcji */
.task-actions { display: flex; gap: 8px; opacity: 0; transition: 0.2s; }
.task-item:hover .task-actions { opacity: 1; }
.action-btn { 
    background: #fff; border: 1px solid var(--gray-border); 
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; 
    font-size: 14px; color: var(--text-dim); display: flex; align-items: center; justify-content: center;
}
.action-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.action-btn.delete:hover { border-color: var(--danger); color: var(--danger); }

.task-date-badge { font-size: 10px; background: #e8f0fe; color: var(--accent-blue); padding: 2px 8px; border-radius: 10px; margin-left: 10px; }
.hub-empty { color: #bdc1c6; font-size: 13px; font-style: italic; }








:root {
    --bg-color: #ffffff;
    --accent-blue: #1a73e8;
    --gray-light: #f8f9fa;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
    --danger: #d93025;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-color); min-height: 100vh; overflow-x: hidden; }

/* Efekt rozmycia aplikacji pod modalem */
#app-wrapper { transition: filter 0.3s ease, transform 0.3s ease; width: 100%; display: flex; flex-direction: column; align-items: center; }
#app-wrapper.blurred { filter: blur(8px) grayscale(20%); transform: scale(0.98); pointer-events: none; }

.top-nav { width: 100%; max-width: 1100px; padding: 25px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-minimal { font-size: 22px; font-weight: 700; color: var(--accent-blue); }
.nav-cluster { display: flex; background: var(--gray-light); padding: 5px; border-radius: 30px; }
.nav-btn { border: none; background: transparent; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.nav-btn.active { background: #fff; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.hub-container { width: 100%; max-width: 800px; padding: 20px; }
.progress-pill { display: flex; align-items: center; gap: 12px; background: var(--gray-light); padding: 8px 16px; border-radius: 50px; border: 1px solid var(--gray-border); margin: 0 auto 30px auto; width: fit-content; }
.pill-bar-bg { width: 100px; height: 6px; background: #e1e5ea; border-radius: 3px; overflow: hidden; }
.pill-bar-fill { height: 100%; background: var(--accent-blue); transition: 0.5s; }

/* Dropdown Wyśrodkowany */
.input-container-main { background: var(--gray-light); padding: 8px 8px 8px 25px; border-radius: 50px; display: flex; align-items: center; }
.input-container-main input[type="text"] { flex: 1; border: none; background: transparent; font-size: 16px; outline: none; }

.select-wrapper select, .date-input-minimal {
    border: 1px solid var(--border-input); background: #fff; 
    padding: 10px 20px; border-radius: 20px; font-size: 13px; 
    font-weight: 500; color: var(--text-main); cursor: pointer; 
    outline: none; text-align: center; text-align-last: center; /* Wyśrodkowanie tekstu */
}

.submit-circle { width: 44px; height: 44px; background: var(--accent-blue); border: none; border-radius: 50%; color: white; font-size: 18px; cursor: pointer; margin-left: 10px; }

/* Lista i Karty */
.list-hub-vertical { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.hub-card { background: var(--gray-light); padding: 25px; border-radius: 24px; border: 1px solid var(--gray-border); }
.hub-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 15px; }

.task-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.task-main-content { display: flex; align-items: center; flex: 1; }
.task-item input { margin-right: 15px; width: 18px; height: 18px; accent-color: var(--accent-blue); cursor: pointer; }

.task-actions { display: flex; gap: 8px; opacity: 0; transition: 0.2s; }
.task-item:hover .task-actions { opacity: 1; }
.action-btn { background: #fff; border: 1px solid var(--gray-border); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-dim); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.action-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* STYL MODALA */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 9999;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card { 
    background: #fff; padding: 30px; border-radius: 28px; width: 90%; max-width: 400px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); text-align: center;
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-card h3 { margin-bottom: 10px; font-size: 18px; }
.modal-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 25px; }
.modal-input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--border-input); font-size: 16px; margin-bottom: 20px; outline: none; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; }

.modal-btn { padding: 12px 24px; border-radius: 15px; border: none; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; text-decoration: none; }
.modal-btn.cancel { background: var(--gray-light); color: var(--text-dim); }
.modal-btn.confirm-delete { background: var(--danger); color: white; }
.modal-btn.confirm-save { background: var(--accent-blue); color: white; }
.modal-btn:hover { opacity: 0.9; transform: translateY(-1px); }











:root {
    --bg-color: #ffffff;
    --accent-blue: #1a73e8;
    --gray-light: #f8f9fa;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
    --danger: #d93025;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-color); min-height: 100vh; overflow-x: hidden; }

/* Rozmycie tła */
#app-wrapper { transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease; width: 100%; display: flex; flex-direction: column; align-items: center; }
#app-wrapper.blurred { filter: blur(10px); transform: scale(0.97); pointer-events: none; }

.top-nav { width: 100%; max-width: 1100px; padding: 25px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-minimal { font-size: 22px; font-weight: 700; color: var(--accent-blue); }
.nav-cluster { display: flex; background: var(--gray-light); padding: 5px; border-radius: 30px; }
.nav-btn { border: none; background: transparent; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.nav-btn.active { background: #fff; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.hub-container { width: 100%; max-width: 800px; padding: 20px; }

/* Dropdown Wyśrodkowany */
.input-container-main { background: var(--gray-light); padding: 8px 8px 8px 25px; border-radius: 50px; display: flex; align-items: center; border: 1px solid transparent; transition: 0.3s; }
.input-container-main input[type="text"] { flex: 1; border: none; background: transparent; font-size: 16px; outline: none; }

.select-wrapper select, .date-input-minimal {
    border: 1px solid var(--border-input); background: #fff; 
    padding: 10px 18px; border-radius: 20px; font-size: 13px; 
    font-weight: 500; color: var(--text-main); cursor: pointer; outline: none;
    text-align: center; text-align-last: center; appearance: none;
}

.submit-circle { width: 44px; height: 44px; background: var(--accent-blue); border: none; border-radius: 50%; color: white; font-size: 18px; cursor: pointer; transition: 0.2s; }
.submit-circle:hover { transform: scale(1.1); }

/* Listy zadań */
.hub-card { background: var(--gray-light); padding: 25px; border-radius: 24px; border: 1px solid var(--gray-border); margin-bottom: 20px; }
.task-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.task-actions { display: flex; gap: 8px; opacity: 0; transition: 0.2s; }
.task-item:hover .task-actions { opacity: 1; }
.action-btn { background: #fff; border: 1px solid var(--gray-border); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-dim); display: flex; align-items: center; justify-content: center; }

/* Style Modali */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 9999; backdrop-filter: blur(2px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card { background: #fff; padding: 35px; border-radius: 30px; width: 90%; max-width: 420px; box-shadow: 0 25px 70px rgba(0,0,0,0.1); text-align: center; transform: scale(0.9); transition: 0.3s; }
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-btn { padding: 14px 28px; border-radius: 18px; border: none; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; text-decoration: none; display: inline-block; }
.modal-btn.cancel { background: var(--gray-light); color: var(--text-dim); }
.modal-btn.confirm-save { background: var(--accent-blue); color: white; }

/* Footer */
.hub-footer { margin: 40px 0; text-align: center; }
.reset-link { background: none; border: 1px solid var(--gray-border); color: var(--text-dim); cursor: pointer; padding: 10px 20px; border-radius: 20px; font-size: 13px; }
.reset-link:hover { background: #fff; color: var(--accent-blue); border-color: var(--accent-blue); }





:root {
    --bg-color: #ffffff;
    --accent-blue: #1a73e8;
    --gray-light: #f8f9fa;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
    --danger: #d93025;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-color); min-height: 100vh; }

#app-wrapper { transition: filter 0.4s ease, transform 0.4s ease; width: 100%; display: flex; flex-direction: column; align-items: center; }
#app-wrapper.blurred { filter: blur(10px); transform: scale(0.98); pointer-events: none; }

.top-nav { width: 100%; max-width: 800px; padding: 25px; display: flex; justify-content: space-between; align-items: center; }
.logo-minimal { font-size: 20px; font-weight: 700; color: var(--accent-blue); }
.nav-cluster { display: flex; background: var(--gray-light); padding: 5px; border-radius: 30px; }
.nav-btn { border: none; background: #fff; padding: 8px 20px; border-radius: 20px; font-weight: 600; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.hub-container { width: 100%; max-width: 800px; padding: 20px; }
.progress-pill { display: flex; align-items: center; gap: 12px; background: var(--gray-light); padding: 10px 20px; border-radius: 50px; margin: 10px 0 15px; border: 1px solid var(--gray-border); width: fit-content; margin-left: auto; margin-right: auto; }
.pill-bar-bg { width: 100px; height: 6px; background: #e1e5ea; border-radius: 3px; overflow: hidden; }
.pill-bar-fill { height: 100%; background: var(--accent-blue); transition: 0.5s; }

.input-container-main { background: var(--gray-light); padding: 8px 8px 8px 25px; border-radius: 50px; display: flex; align-items: center; }
.input-container-main input[type="text"] { flex: 1; border: none; background: transparent; font-size: 16px; outline: none; }

.controls-wrapper { display: flex; gap: 8px; margin-right: 10px; }
.select-wrapper select, .date-input-minimal {
    border: 1px solid var(--border-input); background: #fff; padding: 10px 18px; 
    border-radius: 20px; font-size: 13px; font-weight: 500; outline: none;
    text-align: center; text-align-last: center; /* Wyśrodkowanie tekstu */
}
.hidden { display: none; }
.submit-circle { width: 44px; height: 44px; background: var(--accent-blue); border: none; border-radius: 50%; color: white; cursor: pointer; }

.list-hub-vertical { display: flex; flex-direction: column; gap: 15px; }
.hub-card { background: var(--gray-light); padding: 20px; border-radius: 24px; border: 1px solid var(--gray-border); }
.hub-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hub-card h3 { font-size: 11px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 1px; }

.task-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.task-main-content { display: flex; align-items: center; flex: 1; }
.task-item.completed span { color: #bdc1c6; text-decoration: line-through; }
.task-actions { display: flex; gap: 5px; opacity: 0; transition: 0.2s; }
.task-item:hover .task-actions { opacity: 1; }
.action-btn { background: #fff; border: 1px solid var(--gray-border); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.1); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:0.3s; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal-card { background:#fff; padding:30px; border-radius:25px; width:400px; text-align:center; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: scale(0.9); transition: 0.3s; }
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border-input); margin-bottom: 20px; font-size: 16px; }
.modal-btn { padding: 12px 24px; border-radius: 15px; border:none; cursor:pointer; font-weight:600; text-decoration: none; display:inline-block; margin: 0 5px; }
.confirm-save { background: var(--accent-blue); color: #fff; }
.confirm-delete { background: var(--danger); color: #fff; }
.cancel { background: var(--gray-light); color: var(--text-dim); }

.hub-footer { text-align: center; margin-top: 30px; padding-bottom: 30px; }
.reset-link { background: none; border: 1px solid var(--gray-border); color: var(--text-dim); padding: 8px 20px; border-radius: 20px; cursor: pointer; }


















/* Wyrównanie nagłówka karty (Emoji + Napis) */
.hub-card-header {
    display: flex;
    align-items: center; /* Centrowanie pionowe emoji i H3 */
    gap: 12px;
    margin-bottom: 15px;
}

.hub-emoji {
    font-size: 18px;
    line-height: 1; /* Zapobiega dodawaniu pustego miejsca pod emoji */
    display: flex;
    align-items: center;
}

.hub-card h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin: 0; /* Usuwamy domyślne marginesy, które psują środek */
    display: flex;
    align-items: center;
}

/* Wyrównanie treści zadania i daty */
.task-main-content {
    display: flex;
    align-items: center; /* Centrowanie checkboxa względem tekstu */
    flex: 1;
}

.task-text-wrapper {
    display: flex;
    align-items: center; /* To kluczowe: wyrównuje tekst zadania i datę w jednej linii */
    gap: 10px;
    line-height: 1.2;
}

.task-text {
    display: inline-block;
    vertical-align: middle;
}

.task-date-badge {
    background: #e8f0fe;
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    display: flex; /* Pozwala na wewnętrzne centrowanie tekstu daty */
    align-items: center;
    height: fit-content;
}

/* Poprawka dla checkboxa */
.task-item input[type="checkbox"] {
    margin: 0 15px 0 0;
    cursor: pointer;
    flex-shrink: 0; /* Zapobiega zgniataniu checkboxa */
}







/* Kontener główny zadania */
.task-main-content {
    display: flex;
    align-items: flex-start; /* Zmieniamy na start, aby checkbox był przy pierwszej linii tekstu */
    gap: 15px;
    flex: 1;
    min-width: 0; /* Kluczowe dla zawijania tekstu w flexboxie */
}

/* Checkbox - idealnie wycentrowany względem pierwszej linii tekstu */
.task-item input[type="checkbox"] {
    margin: 0;
    margin-top: 2px; /* Drobna korekta pod wysokość czcionki */
    flex-shrink: 0;
}

/* Wrapper dla daty i tekstu */
.task-text-wrapper {
    display: flex;
    align-items: flex-start; /* Wyrównanie do góry pierwszej linii */
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Badge daty - nie może się zgniatać */
.task-date-badge {
    flex-shrink: 0; /* Zapobiega zwężaniu daty przez długi tekst */
    font-size: 11px;
    background: #e8f0fe;
    color: var(--accent-blue);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px; /* Korekta, by była idealnie w linii z tekstem */
    display: inline-flex;
    align-items: center;
}

/* Tekst zadania - musi się zawijać */
.task-text {
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word; /* Rozbija bardzo długie wyrazy */
    white-space: normal;   /* Pozwala na zawijanie do nowej linii */
    color: var(--text-main);
}

/* Nagłówki sekcji (Emoji i Napis) */
.hub-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hub-emoji {
    display: flex;
    align-items: center;
    line-height: 1;
}

.hub-card h3 {
    margin: 0;
    line-height: 1;
}





/* Domyślny układ dla zadań bez daty */
.task-text-wrapper {
    display: flex;
    /* align-items: baseline sprawia, że dół tekstu w badge'u 
       i dół pierwszej linii zadania są w jednej linii */
    align-items: baseline; 
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Układ Grid dla zadań z datą */
.task-text-wrapper:has(.task-date-badge) {
    display: grid;
    grid-template-columns: max-content 1fr;
    /* W gridzie align-items: baseline działa najlepiej, 
       by zrównać badge z tekstem obok */
    align-items: baseline; 
    gap: 15px;
}

/* Tekst zadania */
.task-text {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    /* Ustawiamy konkretny line-height, żeby łatwiej było celować badge'em */
    line-height: 1.5; 
    color: var(--text-main);
    word-break: break-word;
    white-space: normal;
}

/* Badge daty - Precyzyjne wyrównanie */
.task-date-badge {
    opacity: .6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--text-dim);
    /* Zmniejszamy padding pionowy, żeby badge nie był za "gruby" */
    padding: 2px 10px; 
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    /* KLUCZ: Delikatne przesunięcie, aby środek badge'a 
       pokrył się ze środkiem małych liter tekstu obok */
    transform: translateY(1px); 
}








/* Floating Action Button */
.fab-reset {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    z-index: 99; /* Aby był nad listą zadań */
}

.fab-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.fab-reset:hover {
    background-color: #1557b0; /* Nieco ciemniejszy niebieski */
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.fab-reset:active {
    transform: scale(0.95);
}

/* Ukrywamy stary tekstowy przycisk na dole, jeśli chcesz 
   (opcjonalnie, możesz go zostawić jako drugą opcję) */
.hub-footer {
    display: none;
}



/* Styl dla wykonanego zadania */
.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-dim);
    /* Dodajemy rozmycie tekstu */
    filter: blur(1.5px); 
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Opcjonalnie: rozmycie badge'a z datą w wykonanych zadaniach */
.task-item.completed .task-date-badge {
    filter: blur(1px);
    opacity: 0.5;
}

/* Usuwamy rozmycie po najechaniu myszką, gdybyś chciał jednak coś odczytać */
.task-item.completed:hover .task-text,
.task-item.completed:hover .task-date-badge {
    filter: blur(0);
    opacity: 1;
}





.progress-fill {
    height: 100%;
    background-color: var(--accent-blue);
    width: 0%; /* To kontroluje JS */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Płynna animacja */
    border-radius: inherit;
}









.btn-move-up {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.7;
}

.btn-move-up:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #27ae60; /* Zmienia się na zielony przy najechaniu */
}

/* Ukrywamy strzałkę, jeśli zadanie jest już wykonane */
.task-item.completed .btn-move-up {
    display: none;
}






/* Animacja znikania z listy "Do zrobienia" */
.task-item.slide-out {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

/* Animacja wchodzenia na listę "Na dziś" */
.task-item.slide-in {
    animation: slideInFromLeft 0.4s ease forwards;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Podświetlenie zadania, które właśnie "przyleciało" */
.task-item.just-moved {
    border-left: 4px solid #27ae60;
    background-color: #f0fff4;
}



/* Styl dla zadania w trakcie i tuż po przeniesieniu */
.task-item.just-moved {
    background-color: #f0fff4 !important; /* Bardzo delikatny zielony */
    border-left: 4px solid #27ae60 !important; /* Wyraźna zielona linia z boku */
    border-radius: 8px; /* Zaokrąglone rogi, żeby nie było kanciaste */
    margin-bottom: 8px; /* Odstęp od zadania poniżej */
    padding: 12px 15px; /* KLUCZOWE: Odstęp treści od krawędzi (też od checkboxa) */
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15); /* Delikatny cień */
    transition: all 0.5s ease;
}

/* Upewnij się, że Twoje standardowe zadania też mają padding, 
   żeby po zniknięciu klasy 'just-moved' tekst nie "skoczył" */
.task-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #fff;
    transition: background-color 0.3s, opacity 0.3s;
}

/* Odstęp między checkboxem a tekstem zadania */
.task-item input[type="checkbox"] {
    margin-right: 15px; /* To odsunie tekst od checkboxa */
    cursor: pointer;
    width: 18px;
    height: 18px;
}




:root {
    /* Tryb Jasny */
    --bg-color: #ffffff;
    --card-bg: #f8f9fa; 
    --accent-blue: #1a73e8;
    --gray-border: #f1f3f4;
    --text-main: #202124;
    --text-dim: #5f6368;
    --border-input: #d1d4d7;
    --input-bg: #f8f9fa;
    --nav-bg: #f8f9fa;
    --pill-bg: #e1e5ea;
}

[data-theme="dark"] {
    /* Tryb Nocny - Głębia i Kontrast */
    --bg-color: #000000;         /* Całkowita czerń tła jak na screenie */
    --card-bg: #1a1a1a;         /* Ciemne karty */
    --accent-blue: #8ab4f8;     /* Jaśniejszy błękit dla lepszej czytelności */
    --gray-border: #333333;
    --text-main: #e8eaed;       /* Jasny tekst */
    --text-dim: #9aa0a6;        /* Przygaszony tekst */
    --border-input: #444444;
    --input-bg: #1a1a1a;        /* Ciemne pole tekstowe */
    --nav-bg: #1a1a1a;          /* Ciemne tło przełącznika menu */
    --pill-bg: #333333;         /* Tło paska postępu */
}

/* --- Aplikacja Zmiennych do konkretnych elementów --- */

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    transition: 0.3s ease; 
}

/* Karty (Zadania, Do zrobienia) */
.hub-card {
    background: var(--card-bg) !important;
    border-color: var(--gray-border) !important;
}

/* Pasek postępu (Pill) */
.progress-pill {
    background: var(--card-bg) !important;
    border-color: var(--gray-border) !important;
}
.pill-bar-bg {
    background: var(--pill-bg) !important;
}

/* Menu (Zadania / Statystyki) */
.nav-cluster {
    background: var(--nav-bg) !important;
}
.nav-btn.active {
    background: var(--card-bg) !important;
    color: var(--accent-blue) !important;
}

/* Pole tekstowe (Input) */
.input-container-main {
    background: var(--input-bg) !important;
    border-color: var(--gray-border) !important;
}
.input-container-main input[type="text"] {
    color: var(--text-main) !important;
}

/* Elementy listy (Zadania) */
.task-item {
    border-bottom-color: var(--gray-border) !important;
}

/* Przyciski Dropdown i Data */
.select-wrapper select, .date-input-minimal {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--border-input) !important;
}

/* Badge daty w nocy */
[data-theme="dark"] .task-date-badge {
    background: #1a273a;
    color: var(--accent-blue);
}

/* Przycisk Trybu Nocnego (lewy dół) */
.night-toggle {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--gray-border) !important;
}

/* Tło pojedynczego paska zadania */
.task-item {
    background: var(--card-bg) !important;
    padding: 12px 15px; /* Dodajemy padding, żeby tekst nie dotykał krawędzi */
    border-radius: 12px; /* Zaokrąglamy rogi pojedynczych zadań */
    margin-bottom: 5px;  /* Odstęp między zadaniami */
    border-bottom: 1px solid var(--gray-border) !important;
    transition: background 0.3s ease;
}

/* Usuwamy białe tło z checkboxów i przycisków akcji w nocy */
[data-theme="dark"] .action-btn, 
[data-theme="dark"] .task-item {
    background-color: #1a1a1a !important; /* Spójny kolor z kartą */
}

/* Poprawka dla kontenera głównego wejścia (Inputu) */
.input-container-main {
    background: var(--input-bg) !important;
}

/* Wyśrodkowane dropdowny i data wewnątrz inputu */
.select-wrapper select, 
.date-input-minimal {
    background: var(--input-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--gray-border) !important;
}

/* Hover na zadanie w nocy - delikatne rozjaśnienie */
[data-theme="dark"] .task-item:hover {
    background-color: #252525 !important;
}






/* Stylizacja przycisku Wyloguj */
.logout-minimal {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-minimal:hover {
    background-color: var(--gray-light);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Specjalna poprawka dla trybu nocnego */
[data-theme="dark"] .logout-minimal {
    border-color: #444;
    color: #9aa0a6;
    opacity: 0.7;
}

[data-theme="dark"] .logout-minimal:hover {
    background-color: #2d2d2d;
    color: #8ab4f8;
    border-color: #8ab4f8;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}


/* Definitywne usunięcie białego tła z aktywnego przycisku w trybie nocnym */
[data-theme="dark"] .nav-btn.active {
    background-color: #333333 !important; /* Ciemniejszy szary zamiast białego */
    color: var(--accent-blue) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Tło całego kontenera przełącznika */
[data-theme="dark"] .nav-cluster {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Dodatkowo: upewnijmy się, że przyciski nieaktywne mają dobry kolor tekstu */
[data-theme="dark"] .nav-btn {
    color: var(--text-dim) !important;
}

/* Hover na nieaktywny przycisk w nocy */
[data-theme="dark"] .nav-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
}


/* Wymuszenie braku białego tła w trybie nocnym */
[data-theme="dark"] .nav-cluster .nav-btn.active {
    background-color: #333333 !important; /* Ciemnoszary przycisk */
    color: var(--accent-blue) !important;
    background: #333333 !important; /* Na wypadek gdybyś miał skrót 'background' */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Tło samej "pastylki" (kontenera przycisków) */
[data-theme="dark"] .nav-cluster {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Poprawka dla tekstu nieaktywnych przycisków, aby nie były zbyt jasne */
[data-theme="dark"] .nav-btn:not(.active) {
    color: var(--text-dim) !important;
    background: transparent !important;
}


[data-theme="dark"] #nav-repeat.active {
    background-color: #333333 !important;
    color: var(--accent-blue) !important;
}





/* Poprawka dla trybu JASNEGO - lepsza widoczność aktywnej zakładki */
.nav-cluster {
    background: #f1f3f4; /* Nieco ciemniejszy szary dla tła pastylki */
    padding: 4px;
    border-radius: 30px;
    display: flex;
    border: 1px solid #e0e0e0;
}

.nav-btn {
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: #5f6368;
}

/* Stan aktywny w dzień - teraz będzie go widać! */
.nav-btn.active {
    background: #ffffff !important;
    color: #1a73e8 !important;

    font-weight: 600;
}

/* Efekt najechania dla nieaktywnych, żeby interfejs żył */
.nav-btn:not(.active):hover {
    background: rgba(0,0,0,0.04);
    color: #202124;
}



/* Kontener nawigacji - usuwamy obramowanie i tło */
.nav-cluster {

    padding: 5px;
    gap: 5px; /* Delikatny odstęp między przyciskami */
}

/* Wszystkie przyciski domyślnie (nieaktywne) */
.nav-btn {
    color: #5f6368 !important; /* Szary kolor tekstu Google */
    box-shadow: none !important;
    transition: all 0.2s ease;
    padding: 10px 20px;
}

/* Subtelny efekt po najechaniu na nieaktywne */
.nav-btn:not(.active):hover {
    color: #202124 !important;
    background: rgba(0, 0, 0, 0.04) !important; /* Bardzo delikatny szary tylko na hover */
    border-radius: 25px;
}


.submit-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-color, #3b71db);
    color: white;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.submit-circle:hover {
    transform: scale(1.1);
}

/* Dodatkowy odstęp pod polem tekstowym */
.prompt-area-centered {
    margin-bottom: 40px; /* To oddziela input od listy szablonów */
}





/* Kontener ikon w powtarzalnych */
.task-actions-repeatable {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Główny przycisk PLUS - wyraźny i po prawej */
.action-btn-main {
    background: transparent;
    border: none;
    color: var(--accent-blue, #1a73e8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s ease;
}

.action-btn-main:hover {
    transform: scale(1.2);
}

/* Subtelny przycisk X (Usuwanie) */
.action-btn-subtle {
    background: transparent;
    border: none;
    color: #999; /* Bardzo delikatny szary */
    font-size: 16px;
    cursor: pointer;
    opacity: 0; /* Ukryty domyślnie */
    transition: all 0.2s ease;
    padding: 5px;
}

/* Pokaż X po najechaniu na wiersz zadania */
.task-item:hover .action-btn-subtle {
    opacity: 1;
}

.action-btn-subtle:hover {
    color: #ea4335; /* Czerwony tylko po najechaniu bezpośrednio na X */
}

/* Upewnij się, że tekst zadania zajmuje całą wolną przestrzeń */
.task-main-content {
    flex-grow: 1;
}





/* Wspólny styl dla okrągłych przycisków akcji */
.task-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff; /* Białe tło */
    border: 1px solid #f0f0f0; /* Lekki border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    color: #5f6368;
    font-size: 14px;
    padding: 0;

}

.task-actions-repeatable {
    transition: 0.2s; 
}
/* Przycisk PLUS w powtarzalnych - niebieski akcent */
.action-btn.plus-main {
    color: #1a73e8;
    font-weight: 600;
    font-size: 18px;
}

.action-btn.plus-main:hover {
    background: #f8faff;
    border-color: #d2e3fc;
    transform: scale(1.1);
}

/* Subtelny X usuwania */
.action-btn.delete-subtle {
    opacity: 0; /* Ukryty domyślnie */
    color: #999;
}

/* Pokazywanie X po najechaniu na cały wiersz */
.task-item:hover .action-btn.delete-subtle {
    opacity: 1;
}

.action-btn.delete-subtle:hover {
    background: #ffffff;
    border-color: var(--danger);
    color: var(--danger); 
    transform: scale(1.05); /* Delikatne powiększenie jak na głównym */
}

/* Styl dla ikonki + wewnątrz przycisku */
.action-btn.plus-main .icon {
    line-height: 0;
    margin-bottom: 2px;
}




/* Subtelny X usuwania - POPRAWIONY */
.action-btn.delete-subtle {
    opacity: 0; 
    color: #5f6368; /* Kolor neutralny jak na głównym */
    transition: opacity 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    pointer-events: none; /* Ignoruj myszkę gdy niewidoczny */
}

/* Pokazywanie X po najechaniu na cały wiersz - PŁYNNE */
.task-item:hover .action-btn.delete-subtle {
    opacity: 1;
    pointer-events: auto; /* Pozwól klikać gdy widoczny */
}




/* Kontener dla paska pod inputem */
.progress-container-inline {
    width: 100%;
    max-width: 600px; /* Dopasuj do szerokości Twojego inputa */
    margin: 15px auto 0; /* Odstęp od góry i wycentrowanie */
    display: flex;
    justify-content: center;
}

/* Stylizacja paska (jeśli chcesz go nieco odświeżyć) */
.progress-pill {
    background: var(--card-bg);
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.pill-bar-bg {
    width: 150px; /* Stała szerokość paska dla lepszej kontroli */
    height: 6px;
    background: #f1f3f4;
    border-radius: 10px;
    overflow: hidden;
}

.pill-bar-fill {
    height: 100%;
    background: var(--accent-color, #3b71db);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Płynna animacja przy ładowaniu */
}

.pill-value {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
}



/* 1. Zmniejszamy margines pod całą sekcją wpisywania i paska postępu */
.prompt-area-centered {
    margin-bottom: 0px !important; /* Zmniejszone z 40px/30px */
}

/* 2. Zmniejszamy margines samego kontenera paska postępu */
.progress-container-inline {
    margin: 10px auto 0 !important; /* Mniejszy odstęp od inputa */
}

/* 3. Usuwamy nadmiarowe marginesy z kart na dashboardzie */
#dashboard-section .list-hub-vertical {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 4. Opcjonalnie: jeśli Twoja karta ma duży margines górny */
.hub-card {
    margin-top: 10px !important; 
}







/* Upewnij się, że karta ma tę samą szerokość maksymalną */
.hub-card {
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;
}

/* Usuwamy ewentualne paddingi z kontenera nadrzędnego, które mogłyby psuć wyrównanie */
#repeatable-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}





/* Główne ograniczenie dla wszystkich sekcji */
.hub-container {
    max-width: 1000px; /* Dopasuj do swojego ekranu głównego */
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Wymuszenie tej samej szerokości dla kontenerów formularzy i kart */
.prompt-area-centered, 
.hub-card {
    width: 100%;
    max-width: 800px; /* Ta wartość musi być identyczna w obu miejscach */
    margin-left: auto;
    margin-right: auto;
}

/* Pasek postępu - dopasowanie szerokości do inputa powyżej */
.progress-container-inline {
    width: 100%;
    max-width: 800px; 
    margin: 10px auto 20px;
}

.repaetable-card {
    margin-top: 25px !important;
}


/* Styl dla trybu ciemnego */
[data-theme="dark"] {
    --text-color: #e0e0e0; /* Zamiast czystej bieli, używamy złamanej bieli */
}

[data-theme="dark"] .task-item .task-text {
    color: #bdc1c6; /* Przygaszony szary dla niewykonanych zadań */
}

/* Checkboxy w trybie ciemnym też nie powinny być śnieżnobiałe */
[data-theme="dark"] input[type="checkbox"] {
    border-color: #5f6368;
    background-color: transparent;
    filter: opacity(0.8); /* Lekkie przygaszenie */
}

/* Podświetlenie zadania po najechaniu - niech będzie delikatne */
[data-theme="dark"] .task-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}





/* Styl dla przycisków akcji w trybie ciemnym */
[data-theme="dark"] .action-btn {
    background: #2d2d2d !important; /* Ciemniejsze tło przycisku zamiast białego */
    border: 1px solid #444 !important; /* Subtelny, ciemny border */
    color: #e0e0e0 !important; /* Jasne ikony (ołówka i iksa) */
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Specyficzne kolory na hover w trybie ciemnym */
[data-theme="dark"] .action-btn.delete:hover {
    border-color: #d93025 !important;
    color: #ff6b6b !important;
    background: #3d2424 !important;
}

[data-theme="dark"] .action-btn.edit:hover {
    border-color: #1a73e8 !important;
    color: #8ab4f8 !important;
    background: #242a38 !important;
}




/* Przywrócenie kolorów w Powtarzalnych dla Trybu Ciemnego */
[data-theme="dark"] .action-btn.plus-main {
    color: #8ab4f8 !important; /* Jaśniejszy niebieski dla lepszej widoczności w ciemności */
    border-color: rgba(138, 180, 248, 0.3) !important;
    background: #202124 !important;
}

[data-theme="dark"] .action-btn.plus-main:hover {
    background: #242a38 !important;
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 8px rgba(138, 180, 248, 0.2);
}

/* Subtelny X w powtarzalnych (Dark Mode) */
[data-theme="dark"] .action-btn.delete-subtle {
    opacity: 0;
    color: #9aa0a6 !important;
    border-color: #444 !important;
    background: #2d2d2d !important;
}

/* Hover na cały wiersz w powtarzalnych */
.task-item:hover [data-theme="dark"] .action-btn.delete-subtle {
    opacity: 1;
}

/* Hover bezpośrednio na X w powtarzalnych (Dark Mode) */
[data-theme="dark"] .action-btn.delete-subtle:hover {
    color: #ff6b6b !important;
    border-color: #d93025 !important;
    background: #3d2424 !important;
}




/* Wymuszenie tła hover dla obu list */
#dashboard-section .task-item,
#repeatable-section .task-item {
    position: relative;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 12px; /* Lekkie zaokrąglenie dla lepszego wyglądu */
    margin-bottom: 2px;
    padding: 10px; /* Upewnij się, że jest padding, żeby tło było widać wokół tekstu */
}

/* Stan Hover - tryb dzienny */
#dashboard-section .task-item:hover,
#repeatable-section .task-item:hover {
    background-color: rgba(0, 0, 0, 0.03) !important; /* Bardzo subtelny szary */
}

/* Stan Hover - tryb nocny */
[data-theme="dark"] #dashboard-section .task-item:hover,
[data-theme="dark"] #repeatable-section .task-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Bardzo subtelny biały/szary */
}





/* Styl dla tła modali w trybie ciemnym */
[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.85); /* Ciemniejsza warstwa pod modalem */
    backdrop-filter: blur(4px); /* Mocniejszy blur dla lepszej głębi */
}

/* Karta modala w trybie ciemnym */
[data-theme="dark"] .modal-card {
    background: #1e1e1e !important; /* Ciemne tło karty */
    border: 1px solid #333 !important; /* Subtelna ramka */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Głęboki, ciemny cień */
    color: #e0e0e0;
}

/* Teksty wewnątrz modala */
[data-theme="dark"] .modal-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .modal-card p {
    color: #9aa0a6; /* Przygaszony tekst opisu */
}

/* Input w modalu edycji (Dark Mode) */
[data-theme="dark"] .modal-input {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
}

/* Przyciski w modalu */
[data-theme="dark"] .modal-btn.cancel {
    background: transparent;
    color: #9aa0a6;
    border: 1px solid #444;
}

[data-theme="dark"] .modal-btn.cancel:hover {
    background: #333;
    color: #fff;
}




/* Naprawa odstępu: tekst h3 vs input */
[data-theme="dark"] .modal-card h3 {
    margin-bottom: 20px !important; /* Wymuszenie odstępu od napisu do inputa */
}

/* Styl dla inputa - upewnijmy się, że ma margines górny */
[data-theme="dark"] .modal-input {
    margin-top: 5px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box; /* Żeby input nie wystawał poza kartę */
}

/* Przycisk ZAPISZ w trybie nocnym (mniej agresywny niebieski) */
[data-theme="dark"] .modal-btn.confirm-save {
    background-color: #3b71db !important; /* Przyjemny, głęboki niebieski */
    color: #ffffff !important;
    border: none;
    transition: background 0.2s;
}

[data-theme="dark"] .modal-btn.confirm-save:hover {
    background-color: #4c82ed !important; /* Lekkie rozjaśnienie na hover */
}

/* Przycisk USUŃ w trybie nocnym (stonowana czerwień) */
[data-theme="dark"] .modal-btn.confirm-delete {
    background-color: #b3261e !important;
    color: #ffffff !important;
    border: none;
}






/* 1. Ujednolicone wymiary dla OBU trybów */
.modal-card {
    padding: 24px !important; /* Mniejszy, zgrabny padding */
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    display: block; /* Powrót do standardowego układu blokowego */
}

.modal-card h3 {
    margin: 0 0 16px 0 !important; /* Delikatny odstęp pod tytułem */
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.modal-card p {
    margin: 0 0 20px 0 !important;
    text-align: center;
    font-size: 0.95rem;
}

/* Input musi mieć oddech, ale bez przesady */
.modal-input {
    margin: 4px 0 20px 0 !important;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Przyciski - równe i blisko siebie */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 2. TYLKO ZMIANA KOLORÓW DLA NOCNEGO (Bez dotykania marginesów!) */
[data-theme="dark"] .modal-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .modal-card h3 { color: #ffffff !important; }
[data-theme="dark"] .modal-card p { color: #9aa0a6 !important; }

[data-theme="dark"] .modal-input {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

/* Fix dla przycisku Anuluj w nocnym - żeby nie był "pusty" */
[data-theme="dark"] .modal-btn.cancel {
    background: #2d2d2d !important;
    color: #9aa0a6 !important;
    border: 1px solid #444 !important;
}



/* --- FIX DLA PRZYCISKU FAB I MODALOWYCH W NOCNYM --- */
[data-theme="dark"] .fab-reset {
    background-color: #3b71db !important; /* Spokojniejszy, systemowy niebieski */
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 113, 219, 0.3); /* Subtelniejsza poświata */
}

[data-theme="dark"] .fab-reset:hover{
    background-color: #4c82ed !important;
    box-shadow: 0 4px 20px rgba(59, 113, 219, 0.4);
}














.stats-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 30px 20px !important;
}

.stat-card h4 {
    margin: 10px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.7;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 10px 0;
    color: var(--accent-color);
}

/* Dostosowanie w trybie nocnym */
[data-theme="dark"] .stat-card {
    background: #1e1e1e !important;
}

[data-theme="dark"] .stat-value {
    color: #8ab4f8;
}



/* Kontener statystyk */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Karta w stylu Google */
.stat-card {
    background: #ffffff;
    border: 1px solid #dadce0; /* Subtelna ramka Google */
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s ease-in-out;
    text-align: left; /* Bardziej biznesowy układ */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:hover {
    box-shadow: 0 1px 3px rgba(60,64,67, 0.3), 0 4px 8px 3px rgba(60,64,67, 0.15);
}

/* Tytuł karty */
.stat-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368; /* Szary Google */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wartość główna */
.stat-card .stat-value {
    font-size: 36px;
    font-weight: 400;
    color: #202124;
    margin: 12px 0;
}

/* Opis dolny */
.stat-card p {
    margin: 0;
    font-size: 13px;
    color: #70757a;
    line-height: 1.5;
}

/* Specyficzne kolory dla akcentów (opcjonalnie) */
.stat-card:nth-child(1) .stat-value { color: #1a73e8; } /* Blue - Skuteczność */
.stat-card:nth-child(2) .stat-value { color: #1e8e3e; } /* Green - Ukończone */
.stat-card:nth-child(3) .stat-value { color: #f9ab00; } /* Yellow - Dzisiaj */

/* Obsługa trybu ciemnego (jeśli posiadasz) */
[data-theme="dark"] .stat-card {
    background: #202124;
    border-color: #3c4043;
}
[data-theme="dark"] .stat-card .stat-value { color: #e8eaed; }
[data-theme="dark"] .stat-card h4 { color: #9aa0a6; }







.btn-plus-all {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-plus-all:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-plus-all:disabled {
    background: #ccc;
    cursor: not-allowed;
}




.btn-mass-add-pill {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.btn-mass-add-pill:hover {
    background: #eef2ff;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.btn-mass-add-pill .pill-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-blue);
    margin-right: 8px;
}

.btn-mass-add-pill .pill-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}





/* Kontener dla przycisku akcji */
.action-bar-centered {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Przycisk w stylu Google Blue */
.google-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a73e8; /* Klasyczny niebieski Google */
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px; /* Standardowe zaokrąglenie Google */
    font-family: 'Google Sans', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.google-btn-primary:hover {
    background-color: #1765cc;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.google-btn-primary:active {
    background-color: #165bb7;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.google-btn-primary svg {
    margin-left: -4px;
}

/* Styl dla stanu ładowania w modalu */
.google-btn-primary:disabled {
    background-color: #e8eaed;
    color: #9aa0a6;
    cursor: not-allowed;
    box-shadow: none;
}



/* Kontener przycisku */
.action-bar-centered {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Nowy styl przycisku CCC */
.btn-ccc-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-light); /* To samo tło co nav-cluster */
    color: var(--text-main);
    border: 1px solid var(--gray-border);
    padding: 10px 24px;
    border-radius: 30px; /* Takie samo jak w Twojej nawigacji */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ccc-action:hover {
    background: #eef2ff; /* Bardzo delikatny błękit przy najechaniu */
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.btn-ccc-action svg {
    color: var(--accent-blue); /* Tylko ikonka jest niebieska */
}

/* Stan ładowania */
.btn-ccc-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}





/* Tryb nocny dla przycisku akcji - poprawiony kontrast tekstu */
[data-theme="dark"] .btn-ccc-action {
    background: #2d2e30; /* Nieco głębszy odcień szarości */
    border-color: #3c4043;
    color: #bdc1c6; /* Przygaszony biały/szary w stylu Google Dark Mode */
}

[data-theme="dark"] .btn-ccc-action:hover {
    background: #353639;
    border-color: #8ab4f8; /* Jaśniejszy błękit obramowania przy najechaniu */
    color: #e8eaed; /* Jaśniejszy tekst tylko przy hoverze */
}

[data-theme="dark"] .btn-ccc-action svg {
    color: #8ab4f8; /* Charakterystyczny błękit Google Dark dla ikon */
}







/* Styl dla gwiazdki Gmail-style */
.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.star-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #5f6368;
    stroke-width: 2px;
    transition: transform 0.2s, fill 0.2s;
}

.star-btn.active .star-icon {
    fill: #f4b400; /* Klasyczny żółty Google */
    stroke: #f4b400;
}

.star-btn:hover .star-icon {
    transform: scale(1.1);
}

/* Styl dla edycji inline */
.task-text[contenteditable="true"] {
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    outline: none;
    cursor: text;
    border: 1px solid transparent;
}

.task-text[contenteditable="true"]:focus {
    background: var(--bg-color);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}








.task-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Większy odstęp dla lepszej czytelności */
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.6; /* Subtelność: domyślnie lekko przezroczysta */
    transition: opacity 0.2s;
}

.star-btn:hover {
    opacity: 1;
}

.star-icon {
    width: 18px; /* Nieco mniejsza */
    height: 18px;
    fill: none;
    stroke: #bdc1c6; /* Jaśniejszy szary obrys */
    stroke-width: 1.5px; /* Cieńsza linia */
    transition: all 0.3s ease;
}

.star-btn.active {
    opacity: 1;
}

.star-btn.active .star-icon {
    fill: #fbbc04; /* Cieplejszy, subtelniejszy żółty Google */
    stroke: #fbbc04;
}

/* Animacja przesunięcia zadania */
.task-item {
    transition: transform 0.4s ease, background-color 0.4s ease, order 0.4s ease;
}

/* Kontener musi być flexem, żeby 'order' działało */
.hub-task-list {
    display: flex;
    flex-direction: column;
}

/* Domyślna kolejność dla zwykłych zadań */
.task-item {
    order: 2;
    transition: transform 0.3s ease, order 0.3s ease, background-color 0.3s ease;
}

/* Zadania z gwiazdką wskakują na górę */
.task-item.is-starred {
    order: 1;
    background-color: rgba(251, 188, 4, 0.05); /* Subtelne tło dla wyróżnionych */
}






.streak-container-main {
    display: flex;
    justify-content: center;
    margin: 15px 0 5px 0;
}

.streak-badge-modern {
    background: #fff4e5;
    border: 1px solid #ffe2b3;
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #855000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.fire-icon {
    font-size: 16px;
}




/* Nowy, kompaktowy styl ognia w statystykach */
.streak-badge-mini {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 152, 0, 0.1); /* Bardzo delikatny pomarańcz */
    color: #ef6c00;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px; /* Mały odstęp od siatki statystyk */
    border: 1px solid rgba(255, 152, 0, 0.15);
}

/* Upewnij się, że stats-section nie ma gigantycznego paddingu na górze */
#stats-section {
    padding-top: 10px;
}   




.stats-inline-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Odstęp między paskiem a ogniem */
    margin-top: 15px;
}

/* Styl dla pigułki streaka */
.streak-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff4e5; /* Subtelny pomarańcz */
    border: 1px solid #ffe2b3;
    padding: 4px 12px;
    border-radius: 20px;
    height: 32px; /* Ta sama wysokość co pasek postępu */
}

.streak-emoji {
    font-size: 16px;
}

.streak-num {
    font-size: 14px;
    font-weight: 600;
    color: #855000;
}





/* Kontener dla napisu i badge'a */
.header-with-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Styl miniaturowej zakładki */
.streak-tab-badge {
    background: #fff4e5;
    border: 1px solid #ffe2b3;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #855000;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(255, 165, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: default;
}

.streak-tab-badge:hover {
    transform: scale(1.1);
}

.streak-tab-badge span {
    font-family: 'Inter', sans-serif;
}




.task-date-badge {
    font-size: 11px; /* Nieco większa */
    font-weight: 700; /* Pogrubiona, by była wyraźniejsza */
    background: #f0f4f8; /* Jasnoniebieski/szary odcień dla kontrastu */
    color: var(--accent-blue); /* Użycie koloru przewodniego dla daty */
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #dce4ec;
    margin-right: 10px; /* Odstęp od treści zadania */
    margin-left: 5px;  /* Odstęp od gwiazdki */
    white-space: nowrap;
}

/* W trybie nocnym */
[data-theme="dark"] .task-date-badge {
    background: #2d3238;
    color: #8ab4f8;
    border-color: #3c4043;
}





/* Wyrównanie elementów wewnątrz zadania */
.task-left {
    display: flex;
    align-items: center;
    gap: 0; /* Gap na zero, marginesy ustawimy ręcznie dla precyzji */
    flex: 1;
}

/* Checkbox i gwiazdka - stałe odstępy */
.task-left input[type="checkbox"] {
    margin-right: 12px;
}

.star-btn {
    margin-right: 8px;
}

/* Badge daty o stałej szerokości */
.task-date-badge {
    display: inline-flex;
    justify-content: center; /* Centrowanie tekstu w poziomie */
    align-items: center;
    
    width: 45px;      /* STAŁA SZEROKOŚĆ - klucz do równego startu tekstu */
    min-width: 45px;
    height: 22px;
    
    font-size: 11px;
    font-weight: 700;
    background: var(--gray-light);
    color: var(--accent-blue);
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    
    margin-right: 12px; /* Odstęp od tekstu zadania */
    flex-shrink: 0;     /* Blokuje zgniatanie badge'a */
}

/* Jeśli chcesz, żeby zadania "Na dziś" też były przesunięte o tyle samo miejsca co te z datą, 
   możesz dodać margines do task-text w sekcjach bez daty, 
   ale zazwyczaj lepiej wygląda, gdy tekst "Na dziś" zaczyna się wcześniej. */




   /* Resetujemy zachowanie kontenera */
.task-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Wymusza trzymanie się lewej strony */
    gap: 10px !important; /* Stały odstęp między checkboxem, gwiazdką, datą a tekstem */
    width: auto !important;
    flex: 1 !important;
}

/* Badge daty dopasowany do zawartości */
.task-date-badge {
    display: inline-flex !important;
    width: fit-content !important; /* KLUCZ: szerokość dokładnie taka jak data */
    min-width: 0 !important;       /* Usuwa ewentualne limity */
    max-width: none !important;
    
    padding: 2px 8px !important;   /* Poduszka boczna */
    background: #eef4ff !important;
    color: #1a73e8 !important;
    border: 1px solid #d0e1fd !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important; /* Blokuje łamanie daty do nowej linii */
    flex-shrink: 0 !important;      /* Nie pozwala go zgniatać */
}

/* Tekst zadania przejmuje resztę miejsca */
.task-text {
    flex: 1 !important;
    margin: 0 !important;
    text-align: left !important;
}




/* Kontener lewej strony musi być ciasny */
.task-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 8px !important; /* To kontroluje odstępy - zmień na 5px jeśli chcesz jeszcze ciaśniej */
    width: auto !important;
    justify-content: flex-start !important;
}

/* Badge daty - automatyczna szerokość */
.task-date-badge {
    /* Resetowanie szerokości */
    width: auto !important; 
    min-width: 0 !important;
    flex: 0 0 auto !important; /* Kluczowe: nie rośnij, nie malej, dopasuj do treści */
    
    display: inline-flex !important;
    padding: 2px 6px !important;
    background: #f1f3f4 !important;
    color: #5f6368 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    border: 1px solid #dadce0 !important;
    margin: 0 !important; /* Odstępy załatwia 'gap' w .task-left */
}

/* Upewnij się, że tekst zadania nie jest wypychany */
.task-text {
    flex: 1 !important;
    text-align: left !important;
    padding-left: 4px !important;
}

/* Poprawka badge'a daty dla trybu nocnego */
[data-theme="dark"] .task-date-badge {
    background: rgba(255, 255, 255, 0.05) !important; /* Bardzo delikatne, ciemne tło */
    color: #888 !important;                           /* Przygaszony szary tekst */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtelna ramka */
    font-weight: 500 !important;                      /* Lżejsza czcionka, by mniej rzucała się w oczy */
}

/* Opcjonalnie: lekkie rozjaśnienie przy najechaniu, żeby wiedzieć że tam jest */
[data-theme="dark"] .task-item:hover .task-date-badge {
    color: #bbb !important;
    background: rgba(255, 255, 255, 0.08) !important;
}






@media (max-width: 600px) {
    /* 1. Zwiększamy kontenery, by nie miały bocznych marginesów */
    .hub-container {
        width: 100% !important;
        padding: 15px 10px !important;
    }

    /* 2. Formularz dodawania - przyciski pod spodem, by input był szeroki */
    .input-container-main {
        flex-direction: column;
        gap: 10px;
        padding: 15px !important;
    }

    .controls-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    /* 3. Wiersz zadania - najważniejsza zmiana */
    .task-item {
        flex-wrap: wrap; /* Pozwala akcjom przeskoczyć niżej jeśli braknie miejsca */
        padding: 12px 5px !important;
    }

    .task-left {
        gap: 6px !important;
        /* Tekst może być długi, więc dajemy mu priorytet */
        width: calc(100% - 40px); 
    }

    .task-text {
        font-size: 15px; /* Większa czcionka, łatwiejsza do kliknięcia */
    }

    /* 4. Ukrywamy zbędne elementy lub zmieniamy ich rozmiar */
    .task-date-badge {
        font-size: 10px !important;
        padding: 1px 4px !important;
    }

    /* 5. Powiększamy przyciski akcji (łatwiejsze do kliknięcia palcem) */
    .action-btn {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 6. Nawigacja - przyciski obok siebie, ale mniejsze */
    .nav-btn {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    /* 7. Fab (przycisk resetu) - upewnij się, że nie zasłania tekstu */
    .fab-reset {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}



@media (max-width: 600px) {
    /* 1. Nowy układ nagłówka */
    .top-nav {
        flex-wrap: wrap;
        padding: 15px 15px !important;
        gap: 15px;
    }

    .logo-minimal {
        order: 1;
        flex: 1; /* Pcha wyloguj do prawej */
    }

    .logout-minimal {
        order: 2;
        background: var(--gray-light);
        padding: 6px 12px;
        border-radius: 20px;
    }

    .nav-cluster {
        order: 3;
        width: 100%; /* Pastylka na całą szerokość pod logiem */
        justify-content: space-between;
        display: flex;
    }

    .nav-btn {
        flex: 1; /* Równe przyciski w pastylce */
        padding: 8px 5px !important;
        font-size: 12px;
        text-align: center;
    }

    /* 2. Naprawa sekcji Prompt / Input */
    .prompt-area-centered {
        width: 100% !important;
        padding: 0 10px;
    }

    .input-container-main {
        flex-direction: column !important; /* Wszystko w pionie */
        height: auto !important;
        padding: 12px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }

    .input-container-main input[type="text"] {
        width: 100% !important;
        font-size: 16px !important; /* Zapobiega auto-zoomowi w iOS */
        padding: 8px 0 !important;
    }

    .controls-wrapper {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 10px;
        border-top: 1px solid var(--gray-border);
        padding-top: 10px;
    }

    .select-wrapper select {
        font-size: 13px !important;
    }

    /* Przycisk strzałki w rogu formularza */
    .submit-circle {
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 40px !important;
        height: 40px !important;
    }

    /* 3. Statystyki pod promptem (Pasek i Streak) */
    .stats-inline-wrapper {
        flex-direction: row; /* Zostawiamy obok siebie, ale mniejsze */
        gap: 8px;
        margin-top: 10px;
    }

    .progress-pill {
        padding: 4px 10px !important;
    }

    .pill-bar-bg {
        width: 60px !important; /* Krótszy pasek na mobile */
    }
}



@media (max-width: 600px) {
    /* 1. Naprawa kontenera formularza */
    .input-container-main {
        position: relative !important; /* To jest KLUCZOWE, by przycisk nie uciekał */
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 60px !important; /* Miejsce na przyciski na dole */
    }

    /* 2. Wyśrodkowanie dropdownów (pastylek) */
    .controls-wrapper {
        display: flex !important;
        justify-content: center !important; /* Środkuje dropdowny w poziomie */
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 5px !important;
    }

    /* Dopasowanie szerokości selectów */
    .select-wrapper {
        flex: 0 1 auto !important; /* Nie pozwala im zajmować całej szerokości */
    }

    .select-wrapper select {
        text-align: center !important;
        padding-right: 25px !important; /* Miejsce na strzałkę dropdownu */
    }

    /* 3. Naprawa uciekającego przycisku submit */
    .submit-circle {
        position: absolute !important;
        bottom: 12px !important; /* Przyklejony do dołu formularza */
        right: 12px !important;  /* Przyklejony do prawej krawędzi formularza */
        top: auto !important;    /* Resetuje ewentualne top: 50% */
        transform: none !important;
        z-index: 10 !important;
    }
}




@media (max-width: 600px) {
    /* 1. Kontener dla inputa i strzałki */
    .input-wrapper-relative {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 2. Sam input - dodajemy padding z prawej, by tekst nie wchodził pod strzałkę */
    .input-container-main input[type="text"] {
        padding-right: 50px !important; 
        width: 100% !important;
        margin-bottom: 0 !important; /* Usuwamy zbędne marginesy */
    }

    /* 3. Przycisk jako integralna część inputa */
    .submit-circle {
        position: absolute !important;
        right: 5px !important;    /* Odstęp od prawej krawędzi wewnątrz inputa */
        top: 50% !important;     /* Centrowanie w pionie względem inputa */
        transform: translateY(-50%) !important;
        width: 34px !important;  /* Nieco mniejszy, by pasował do wysokości pola */
        height: 34px !important;
        margin: 0 !important;
        background: var(--accent-blue) !important;
        box-shadow: none !important; /* Usuwamy cień, by wyglądał "płasko" w polu */
    }

    /* 4. Dropdowny pod spodem */
    .controls-wrapper {
        margin-top: 15px !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
    }
}


/* --- STYLE DOMYŚLNE (KOMPUTER) --- */
.input-wrapper-relative {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative; /* Pozwalamy na pozycjonowanie, ale nie wymuszamy go drastycznie */
}

/* Na komputerze przycisk jest po prostu obok lub lekko nachodzi */
.submit-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    margin-left: 10px; /* Odstęp od inputa na komputerze */
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* --- STYLE TYLKO NA TELEFON (PONIŻEJ 600px) --- */
@media (max-width: 600px) {
    .input-wrapper-relative {
        width: 100% !important;
        position: relative !important;
    }

    .input-container-main input[type="text"] {
        width: 100% !important;
        padding-right: 45px !important; /* Miejsce na przycisk wewnątrz */
        margin: 0 !important;
    }

    .submit-circle {
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important; /* Idealne centrowanie w pionie */
        margin-left: 0 !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Centrowanie dropdownów pod spodem */
    .controls-wrapper {
        justify-content: center !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
}





/* --- STYLE DOMYŚLNE (KOMPUTER) --- */
.input-container-main {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: relative;
}

.input-wrapper-relative {
    flex: 1; /* Input zajmuje całą dostępną przestrzeń */
}

.controls-wrapper {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Dropdowny nie mogą się ściskać */
}

.submit-circle {
    order: 3; /* Wymusza bycie na samym końcu (po prawej) */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- STYLE MOBILNE (PONIŻEJ 600px) --- */
@media (max-width: 600px) {
    .input-container-main {
        flex-direction: column !important; /* Wszystko w pionie */
        align-items: stretch !important;
        gap: 12px !important;
        padding-bottom: 10px !important;
    }

    .input-wrapper-relative {
        position: relative !important;
        width: 100% !important;
    }

    /* Strzałka wraca do środka inputa na telefonie */
    .submit-circle {
        position: absolute !important;
        right: 6px !important;
        top: 25px !important; /* Połowa wysokości typowego inputa na mobile */
        transform: translateY(-50%) !important;
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        z-index: 5;
    }

    .input-container-main input[type="text"] {
        padding-right: 45px !important; /* Miejsce na strzałkę wewnątrz */
        width: 100% !important;
    }

    .controls-wrapper {
        order: 2; /* Dropdowny pod inputem */
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Przycisk ze strzałką na komputerze (PC) */
@media (min-width: 601px) {
    .submit-circle {
        position: static !important; /* Rezygnujemy z absolute na PC dla łatwiejszego centrowania */
        transform: none !important;
        margin-left: 10px !important;
        
        /* Centrowanie samej strzałki wewnątrz kółka */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
}

/* Przycisk na telefonie (Mobile) - "wszyty" w input */
@media (max-width: 600px) {
    .submit-circle {
        position: absolute !important;
        right: 5px !important;
        top: 23% !important;
        transform: translateY(-50%) !important; /* Precyzyjne wyśrodkowanie względem środka inputa */
        width: 36px;
        height: 36px;
    }
    
    #main-task-input {
        padding-right: 45px !important;
    }
}


@media (max-width: 600px) {
    /* Ujednolicenie tekstu w szablonach */
    .repeatable-item, .repeatable-text {
        font-size: 15px !important;    /* Taki sam rozmiar jak w zwykłych zadaniach */
        font-weight: 400 !important;    /* Usuwamy pogrubienie, jeśli było */
        color: var(--text-main) !important;
        letter-spacing: normal !important;
    }

    /* Dopasowanie kontenera szablonu */
    .repeatable-item {
        padding: 12px 10px !important; /* Mniejszy padding, by pasował do listy głównej */
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Jeśli przyciski w szablonach są zbyt duże */
    .repeatable-actions .action-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
}



/* Celujemy w urządzenia mobilne w trybie poziomym oraz małe ekrany do 900px */
@media screen and (max-width: 950px) and (orientation: landscape), 
       screen and (max-width: 850px) {
    
    /* Ujednolicenie tekstu w szablonach dla trybu poziomego */
    .repeatable-item {
        padding: 8px 12px !important; /* Jeszcze ciaśniej w poziomie, by oszczędzić miejsce */
        min-height: auto !important;
    }

    .repeatable-text {
        font-size: 14px !important;    /* Nieco mniejszy tekst niż na pionowym, bo ekran jest niski */
        font-weight: 400 !important;   /* Wymuszamy brak pogrubienia */
        line-height: 1.2 !important;
    }

    /* Przyciski akcji w szablonach */
    .repeatable-actions .action-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        font-size: 12px !important;
    }

    /* Naprawa kontenera, żeby szablony nie zajmowały 100% wysokości ekranu */
    .repeatable-list {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Opcjonalnie: dwa rzędy szablonów obok siebie w poziomie */
        gap: 10px;
    }
}


@media (max-width: 600px) {
    /* Resetujemy domyślne ustawienie dla wszystkich zadań, by były w rzędzie */
    .task-left {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important; /* Pozwala dacie przeskoczyć do nowej linii */
        align-items: center !important;
        gap: 8px !important;
    }

    /* TYLKO JEŚLI w zadaniu jest badge z datą, wymuszamy specyficzny układ */
    .task-item:has(.task-date-badge) .task-left {
        align-items: flex-start !important;
    }

    .task-date-badge {
        /* Wyświetlamy datę jako blok, który zajmie całą szerokość i wymusi nową linię */
        display: block !important;
        width: fit-content;
        margin-left: 32px !important; /* Wyrównanie do tekstu (za checkboxem i gwiazdką) */
        margin-bottom: 2px !important;
        order: -1; /* Data ląduje nad tekstem zadania */
        font-size: 10px !important;
    }

    /* Naprawa tekstu zadania */
    .task-text {
        flex: 1 1 auto; /* Pozwala tekstowi wypełnić resztę, ale nie spychać ikon */
        min-width: 150px;
        font-size: 15px !important;
        word-break: break-word;
    }

    /* Upewniamy się, że ikony (checkbox i gwiazdka) są zawsze obok siebie na górze */
    .task-left input[type="checkbox"],
    .star-btn {
        flex-shrink: 0;
    }
}


.task-left {
    display: flex !important;
    flex-flow: row wrap !important;
    align-content: flex-start;
}



@media (max-width: 600px) {
    /* Kontener lewej strony w zadaniach z datą */
    .task-item:has(.task-date-badge) .task-left {
        display: grid !important; /* Przełączamy na grid dla lepszej kontroli */
        grid-template-areas: 
            "empty date"
            "controls text";
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 4px 10px;
    }

    /* Sama data - ląduje nad tekstem */
    .task-date-badge {
        grid-area: date;
        display: inline-block !important;
        width: fit-content;
        margin: 0 !important;
        padding: 2px 8px !important;
        font-size: 10px !important;
        background: var(--bg-subtle); /* Delikatne tło dla czytelności */
        border-radius: 4px;
    }

    /* Grupa: Checkbox + Gwiazdka */
    /* Musimy je utrzymać obok siebie w linii z tekstem */
    .task-item:has(.task-date-badge) input[type="checkbox"],
    .task-item:has(.task-date-badge) .star-btn {
        grid-area: controls;
        margin: 0 !important;
    }
    
    /* Jeśli checkbox i gwiazdka nie są w jednym divie w HTML, 
       powyższy Grid może wymagać drobnej korekty marginu: */
    .star-btn {
        margin-left: -5px !important; /* Przysunięcie gwiazdki do checkboxa */
    }

    /* Tekst zadania - ląduje obok kontrolek */
    .task-text {
        grid-area: text;
        width: 100%;
        font-size: 15px !important;
        line-height: 1.4;
        align-self: start;
        padding-top: 2px;
    }
}



@media (max-width: 600px) {
    /* Główny kontener zadania z datą */
    .task-item:has(.task-date-badge) .task-left {
        display: grid !important;
        /* Definiujemy dwa rzędy: górny na datę, dolny na kontrolki i tekst */
        grid-template-areas: 
            "empty date"
            "controls text";
        grid-template-columns: 45px 1fr; /* Stała szerokość na checkbox+gwiazdkę */
        align-items: center;
        gap: 6px 0; /* Odstęp między datą a tekstem */
    }

    /* Badge z datą - szerokość dopasowana do tekstu i centrowanie */
    .task-date-badge {
        grid-area: date;
        display: flex !important; /* Flex wewnątrz badge ułatwia centrowanie */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important; /* Badge zajmuje tyle miejsca co tekst pod nim */
        max-width: fit-content;
        margin: 0 !important;
        padding: 4px 10px !important; /* Zwiększony padding dla lepszego wyglądu */
        
        font-size: 11px !important;
        line-height: 1 !important; /* Kluczowe dla wycentrowania tekstu w pionie */
        height: 22px; /* Stała wysokość ułatwia równe ułożenie tekstu */
        
        background: var(--bg-subtle);
        border-radius: 6px;
    }

    /* Kontenery kontrolek (Checkbox + Gwiazdka) */
    /* Musimy wymusić, by były obok siebie w jednej komórce grid */
    .task-item:has(.task-date-badge) input[type="checkbox"] {
        grid-area: controls;
        justify-self: start;
        margin-left: 0 !important;
    }

    .task-item:has(.task-date-badge) .star-btn {
        grid-area: controls;
        justify-self: end; /* Gwiazdka ląduje obok checkboxa po prawej */
        margin-right: 8px !important;
        position: relative;
        top: 1px; /* Korekta optyczna pionu */
    }

    /* Tekst zadania */
    .task-text {
        grid-area: text;
        padding-left: 0 !important; /* Reset, bo grid-gap i kolumny załatwiają odstęp */
        font-size: 15px !important;
        align-self: center;
    }
}


@media (max-width: 600px) {
    /* Główny kontener zadania z datą */
    .task-item:has(.task-date-badge) .task-left {
        display: grid !important;
        grid-template-areas: 
            "empty date"
            "controls text";
        /* Zwiększamy nieco kolumnę na ikony, żeby gwiazdka miała luz */
        grid-template-columns: 65px 1fr; 
        align-items: center;
        gap: 8px 0;
    }

    /* Badge z datą - wyśrodkowanie i szerokość */
    .task-date-badge {
        grid-area: date;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: fit-content;
        margin: 0 !important;
        padding: 4px 12px !important;
        
        font-size: 11px !important;
        line-height: 1 !important;
        height: 22px; /* Stała wysokość trzyma tekst w pionie na środku */
        
        background: var(--bg-subtle);
        border-radius: 6px;
        text-align: center;
    }

    /* Kontrola ikon: Checkbox i Gwiazdka obok siebie */
    .task-item:has(.task-date-badge) input[type="checkbox"] {
        grid-area: controls;
        justify-self: start;
        margin-left: 2px !important;
    }

    .task-item:has(.task-date-badge) .star-btn {
        grid-area: controls;
        /* Przesuwamy gwiazdkę w prawo od checkboxa, zamiast na sam koniec */
        margin-left: 32px !important; 
        justify-self: start;
        position: relative;
        top: 1px;
    }

    /* Tekst zadania */
    .task-text {
        grid-area: text;
        padding-left: 5px !important; /* Delikatny odstęp od gwiazdki */
        font-size: 15px !important;
        align-self: center;
        line-height: 1.4;
    }
}



@media (max-width: 600px) {
    /* Główny kontener zadania z datą */
    .task-item:has(.task-date-badge) .task-left {
        display: grid !important;
        grid-template-areas: 
            "date date" /* Data teraz może zająć oba pola na górze */
            "controls text";
        grid-template-columns: 65px 1fr; 
        align-items: center;
        gap: 6px 0;
    }

    /* Badge z datą - wyrównanie do srodka */
    .task-date-badge {
        grid-area: date;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; 
        
        width: auto !important;
        margin: 0 0 0 2px !important; /* Mały margines 2px aby licował z checkboxem */
        padding: 4px 0 !important; /* Usuwamy boczny padding, skoro równamy do lewej */
        
        font-size: 11px !important;
        font-weight: 600 !important; /* Lekkie pogrubienie, by data była czytelna */
        line-height: 1 !important;
        height: auto;
        
        background: transparent !important; /* Usuwamy tło "pastylki", by data wyglądała jak czysty tekst nad zadaniem */
        color: var(--accent-blue); /* Możesz użyć koloru akcentowego dla daty */
        border: none !important;
    }

[data-theme="dark"] .task-date-badge {
        border: none !important;
        background: transparent !important; /* Usuwamy tło "pastylki", by data wyglądała jak czysty tekst nad zadaniem */
}

    /* Reszta pozostaje bez zmian dla zachowania układu ikon */
    .task-item:has(.task-date-badge) input[type="checkbox"] {
        grid-area: controls;
        justify-self: start;
        margin-left: 2px !important;
    }

    .task-item:has(.task-date-badge) .star-btn {
        grid-area: controls;
        margin-left: 32px !important; 
        justify-self: start;
    }

    .task-text {
        grid-area: text;
        padding-left: 5px !important;
        align-self: center;
    }
}


.streak-tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3e0; /* Delikatny pomarańczowy w trybie jasnym */
    color: #e65100;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid #ffe0b2;
    transition: all 0.3s ease;
}

[data-theme="dark"] .streak-tab-badge {
    background: rgba(255, 152, 0, 0.15) !important; /* Przezroczysty pomarańcz */
    color: #ffb74d !important; /* Jaśniejszy, złoty tekst */
    border-color: rgba(255, 152, 0, 0.3) !important;
}

[data-theme="dark"] .streak-tab-badge span {
    color: #ffb74d !important;
}

[data-theme="dark"] .submit-circle {
    /* Ustawiamy ten sam intensywny niebieski co w trybie jasnym */
    background-color: #1a73e8 !important; 
    color: #ffffff !important;
    opacity: 1 !important;
    border: none !important;
    /* Dodajemy lekką poświatę, żeby nie wydawał się wyblakły na ciemnym tle */
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.3) !important;
}

/* Efekt najechania (hover) - delikatne przyciemnienie */
[data-theme="dark"] .submit-circle:hover {
    background-color: #1557b0 !important; /* Ciemniejszy odcień niebieskiego */
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.5) !important;
}

/* Efekt kliknięcia (active) */
[data-theme="dark"] .submit-circle:active {
    background-color: #0d47a1 !important;
    transform: translateY(-50%) scale(0.95) !important; /* Zachowanie centrowania na mobile */
}



/* Styl dla przycisku Info */
.info-btn {
    transition: all 0.2s ease;
    font-size: 18px;
}

/* Jeśli zadanie MA notatkę, ikona jest zawsze widoczna i ma kolor akcentowy */
.info-btn.has-note {
    opacity: 1 !important;
    color: var(--accent-blue) !important;
}

/* Jeśli zadanie NIE MA notatki, ikona pojawia się dopiero po najechaniu (jak reszta) */
.task-item:not(:hover) .info-btn:not(.has-note) {
    opacity: 0;
}

/* Hover na ikonę info */
.info-btn:hover {
    transform: scale(1.1);
}

[data-theme="dark"] .info-btn.has-note {
    color: #8ab4f8 !important; /* Jaśniejszy niebieski dla Dark Mode */
}

.info-btn {
    font-family: serif; /* Szeryfowe 'i' wygląda bardziej jak ikona informacji */
    font-style: italic;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.info-btn.has-note {
    background: var(--accent-blue);
    color: white !important;
    border-color: var(--accent-blue);
}


.info-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--text-dim);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-dim);
    line-height: 1;
}

/* Kiedy notatka istnieje - przycisk staje się niebieski i widoczny */
.info-btn.has-note {
    background: var(--accent-blue) !important;
    color: white !important;
    border-color: var(--accent-blue) !important;
    opacity: 1 !important;
}

/* Hover na przycisk info */
.info-btn:hover {
    background: var(--gray-light);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}




/* --- LOGIKA IKONY "I" --- */
.info-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    font-family: serif;
    font-style: italic;
    border: 1.5px solid var(--text-dim);
    color: var(--text-dim);
    transition: all 0.2s ease;
    background: transparent;
}

/* Kiedy notatka ISTNIEJE - ikona jest niebieska i ZAWSZE widoczna */
.info-btn.has-note {
    opacity: 1 !important;
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* Kiedy notatki NIE MA - ikona jest ukryta, dopóki nie najedziesz na wiersz */
.task-item:not(:hover) .info-btn:not(.has-note) {
    opacity: 0;
}




/* --- IKONA INFORMACJI (i) --- */
.info-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex !important; /* Wymuszamy widoczność elementu */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    font-family: "Georgia", serif; /* Szeryfowe 'i' wygląda lepiej */
    font-style: italic;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-right: 4px;
}

/* Logika widoczności: Zawsze widoczna jeśli ma notatkę */
.info-btn.has-note {
    opacity: 1 !important;
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    background: rgba(26, 115, 232, 0.1); /* Delikatne tło dla wyróżnienia */
}

/* Ukryta na start, jeśli NOTATKI BRAK */
.task-item:not(:hover) .info-btn:not(.has-note),
.repeatable-item:not(:hover) .info-btn:not(.has-note) {
    opacity: 0;
}



/* --- IKONA INFORMACJI --- */
.info-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
    opacity: 0; /* Domyślnie ukryta */
}

/* KLUCZOWE: Jeśli zadanie ma notatkę - pokaż na stałe */
.info-btn.has-note {
    opacity: 1 !important;
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* Pokaż na hover, jeśli notatki brak */
.task-item:hover .info-btn {
    opacity: 0.5;
}
.task-item:hover .info-btn.has-note {
    opacity: 1;
}




/* Kontener akcji */
.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1 !important; /* Kontener musi być widoczny zawsze */
}

/* Standardowe przyciski (edit/delete) - ukryte domyślnie */
.task-actions .action-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Pokaż przyciski edit/delete po najechaniu na zadanie */
.task-item:hover .action-btn,
.repeatable-item:hover .action-btn {
    opacity: 1;
}

/* --- PRZYCISK INFO (i) --- */
.info-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: "Georgia", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    opacity: 0; /* Domyślnie ukryty (dla zadań bez notatki) */
}

/* KLUCZ: Jeśli ma notatkę - wymuś widoczność ZAWSZE */
.info-btn.has-note {
    opacity: 1 !important; 
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    background: rgba(26, 115, 232, 0.1);
}

/* Pokaż info-btn na hover nawet jeśli nie ma notatki */
.task-item:hover .info-btn {
    opacity: 1;
}

#note-modal .modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: none;
}

#note-modal h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

#task-note-input {
    width: 100%;
    min-height: 140px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #eef0f2;
    background: #f9fafb;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#task-note-input:focus {
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.1);
}

.btn-save-note {
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

.btn-cancel-note {
    background: transparent;
    color: #888;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}


/* --- SUBTELNA IKONA INFO (i) --- */
.info-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: "Georgia", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 13px;
    /* Domyślnie bardzo jasny kolor, prawie niewidoczny */
    border: 1px solid var(--gray-border);
    color: var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    opacity: 0; /* Ukryta dla zadań bez notatki */
}

/* Stan, gdy NOTATKA ISTNIEJE: ikona stale widoczna, ale subtelna */
.info-btn.has-note {
    opacity: 1 !important;
    color: var(--text-dim) !important; /* Ten sam kolor co tekst pomocniczy */
    border-color: var(--gray-border) !important;
    background: var(--gray-light) !important; /* Bardzo delikatne tło */
}

/* Hover na ikonę, która ma notatkę - wtedy może lekko "ożyć" */
.info-btn.has-note:hover {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    background: rgba(26, 115, 232, 0.05) !important;
}

/* Hover na całe zadanie - pokazuje ikony bez notatek */
.task-item:hover .info-btn:not(.has-note),
.repeatable-item:hover .info-btn:not(.has-note) {
    opacity: 0.4; /* Wygaszona ikona na hoverze */
}

/* Hover bezpośrednio na ikonę bez notatki */
.info-btn:not(.has-note):hover {
    opacity: 1 !important;
    border-color: var(--text-dim);
}



/* --- SUBTELNA IKONA W TRYBIE NOCNYM --- */
[data-theme="dark"] .info-btn.has-note {
    background: rgba(255, 255, 255, 0.03) !important; /* Ledwo widoczne tło */
    border-color: rgba(255, 255, 255, 0.1) !important; /* Bardzo ciemna ramka */
    color: rgba(255, 255, 255, 0.3) !important; /* Przygaszona litera i */
    opacity: 0.8 !important;
}

[data-theme="dark"] .info-btn.has-note:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-blue) !important;
    color: #8ab4f8 !important; /* Jaśniejszy niebieski, lepszy dla oka w nocy */
    opacity: 1 !important;
}

/* Jeśli notatki NIE MA (hover w nocy) */
[data-theme="dark"] .task-item:hover .info-btn:not(.has-note) {
    opacity: 0.2; /* Ledwo zauważalny zarys */
}




/* --- NOWOCZESNE OKNO DIALOGOWE NOTATEK --- */
.note-dialog-container {
    max-width: 600px !important; /* Większa szerokość */
    width: 95%;
    padding: 0 !important; /* Resetujemy padding dla czystego header/footer */
    border-radius: 16px !important;
    overflow: hidden;
    background: var(--bg-card);
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
}

.note-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-border);
}

.note-dialog-header span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-icon {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
}

.note-dialog-body {
    padding: 0;
}

#task-note-input {
    width: 100%;
    min-height: 300px; /* Znacznie powiększone pole */
    padding: 24px;
    border: none !important; /* Brak ramki jak w Gmail */
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    outline: none !important;
}

.note-dialog-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--gray-border);
    background: var(--bg-card);
}

.btn-save-note {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn-save-note:hover {
    filter: brightness(1.1);
}

.btn-cancel-note {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel-note:hover {
    background: var(--gray-light);
}

/* Tryb ciemny dla nowego modala */
[data-theme="dark"] .note-dialog-header {
    background: #252525;
}
[data-theme="dark"] #task-note-input {
    color: #e8eaed;
}


#task-note-input:focus {
    outline: none !important;
    border: none !important;
    /* Ostry, prosty cień bez zaokrągleń */
    border-radius: 0 !important; 
    background: transparent;
}



/* --- TRYB NOCNY DLA MODALA NOTATEK --- */

/* Tło całego kontenera modala */
[data-theme="dark"] .note-dialog-container {
    background: #1e1e1e !important; /* Ciemny grafit Google Dark */
    border: 1px solid #333 !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6) !important;
}

/* Nagłówek w trybie nocnym */
[data-theme="dark"] .note-dialog-header {
    background: #252525 !important;
    border-bottom: 1px solid #333 !important;
}

[data-theme="dark"] .note-dialog-header span {
    color: #9aa0a6 !important; /* Przygaszony tekst nagłówka */
}

/* Ikona zamknięcia (X) */
[data-theme="dark"] .close-icon {
    color: #9aa0a6 !important;
}
[data-theme="dark"] .close-icon:hover {
    color: #e8eaed !important;
}

/* Główne pole tekstowe w trybie nocnym */
[data-theme="dark"] #task-note-input {
    background: transparent !important;
    color: #e8eaed !important; /* Jasny tekst dla czytelności */
}

/* FOCUS Z OSTRYMI KRAWĘDZIAMI W TRYBIE NOCNYM */
[data-theme="dark"] #task-note-input:focus {
    outline: none !important;
    border: none !important;
    border-radius: 0 !important; /* Całkowicie ostre krawędzie */
    /* Nieco jaśniejszy, błękitny blask dla lepszej widoczności w nocy */
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.15) !important; 
}

/* Stopka w trybie nocnym */
[data-theme="dark"] .note-dialog-footer {
    background: #1e1e1e !important;
    border-top: 1px solid #333 !important;
}

/* Przyciski w stopce (Tryb Nocny) */
[data-theme="dark"] .btn-save-note {
    background: #8ab4f8 !important; /* Jaśniejszy błękit dla lepszego kontrastu w ciemności */
    color: #202124 !important; /* Ciemny tekst na jasnym przycisku */
}

[data-theme="dark"] .btn-cancel-note {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .btn-cancel-note:hover {
    background: rgba(154, 160, 166, 0.1) !important;
    color: #e8eaed !important;
}



/* --- DOPRACOWANIE MODALU NOTATEK W TRYBIE NOCNYM --- */

[data-theme="dark"] #task-note-input {
    /* Przygaszamy tekst wpisywany, aby nie "bił po oczach" */
    color: rgba(232, 234, 237, 0.7) !important; 
    font-weight: 400;
}

[data-theme="dark"] #task-note-input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-save-note {
    /* Bardziej wyrazisty przycisk - Google Blue w Dark Mode */
    background: #4285f4 !important; 
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3) !important;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-save-note:hover {
    background: #5191f5 !important;
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4) !important;
    transform: translateY(-1px);
}

[data-theme="dark"] .note-dialog-header span {
    /* Napis "Szczegóły zadania" jeszcze bardziej subtelny */
    color: rgba(154, 160, 166, 0.5) !important;
}

/* OSTRY FOCUS W NOCY - subtelniejszy glow */
[data-theme="dark"] #task-note-input:focus {
    box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.4) !important;
}








/* --- PERFEKCYJNE WYRÓWNANIE W PIONIE --- */

.task-item, 
.repeatable-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Centrowanie góra-dół wszystkich dzieci */
    justify-content: flex-start !important;
    min-height: 48px; /* Standardowa wysokość dla wygody klikania */
}

/* Resetujemy tekst - to on najczęściej "ucieka" w dół */
.task-item .task-text,
.repeatable-item .task-text {
    display: flex !important;
    align-items: center !important; /* Centrowanie tekstu wewnątrz jego własnego bloku */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important; /* Zmniejszony line-height zapobiega spychaniu tekstu */
    vertical-align: middle !important;
}

/* Checkbox i Gwiazdka - upewniamy się, że nie mają marginesów góra/dół */
.task-item input[type="checkbox"],
.repeatable-item input[type="checkbox"],
.star-btn {
    margin: 0 !important;
    display: block !important;
}

@media (max-width: 480px) {
    .repeatable-item {
        /* Wymuszamy, by nawet przy długim tekście wszystko trzymało się środka */
        align-items: center !important; 
    }
    
    /* Jeśli masz tam dodatkowe ikony (np. odświeżanie), wyrównaj je również */
    .repeatable-item i {
        display: flex;
        align-items: center;
        height: 100%;
    }
}



/* --- CELOWANA NAPRAWA SEKCJI PRZYSZŁE --- */

@media (max-width: 480px) {
    /* Naprawa kontenera, który jest TYLKO w przyszłych */
    .task-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important; /* Mały, sztywny odstęp Checkbox <-> Gwiazdka */
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* Reset szerokości dla elementów wewnątrz task-left */
    .task-left input[type="checkbox"],
    .task-left .star-btn {
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* Wyrównanie tekstu i daty wewnątrz task-left */
    .task-left .task-text {
        margin-left: 4px !important; /* Odstęp tekstu od daty/gwiazdki */
    }

    /* Przywrócenie porządku w DO ZROBIENIA (gdzie nie ma task-left) */
    .task-item:not(:has(.task-left)) {
        display: flex !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }
}




/* Domyślny kolor dla trybu jasnego */
.logo-minimal {
    color: #202124; 
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.2px;
    font-family: 'Inter', sans-serif;
}

/* Wymuszenie białego koloru w trybie nocnym */
[data-theme="dark"] .logo-minimal {
    color: #FFFFFF !important;
}

/* Opcjonalnie: upewnij się, że kropka i końcówka .one zachowują niebieski */
.logo-minimal span {
    color: #4285F4 !important;
}







/* DOMYŚLNIE (Zadania do zrobienia bez gwiazdki) */
.task-item {
    order: 2;
}

/* ZADANIA DO ZROBIENIA Z GWIAZDKĄ (Najwyżej) */
.task-item.is-starred {
    order: 1;
}

/* ZADANIA WYKONANE Z GWIAZDKĄ (Początek listy wykonanych) */
.task-item.completed.is-starred {
    order: 3;
}

/* ZADANIA WYKONANE BEZ GWIAZDKI (Na samym dole) */
.task-item.completed {
    order: 4;
}