/* Страница настроек: контент выше футера, футер остаётся видимым */
.settings-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 64px;
    width: 100%;
    background: #121212;
    z-index: 1500;
    overflow: hidden;
    flex-direction: column;
}

.settings-screen.active {
    display: flex;
}

@media (min-width: 769px) {
    .settings-screen {
        left: 50%;
        transform: translateX(-50%);
        max-width: 960px;
        width: 960px;
    }
}

body.settings-open {
    overflow: hidden;
}

body.light-theme .settings-screen {
    background: #f8fafc;
}

.settings-screen-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .settings-screen-header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.settings-screen-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px 0 20px;
}

.settings-screen-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

body.light-theme .settings-screen-title {
    color: #1e293b;
}

/* Блоки в контенте настроек */
.settings-section {
    margin-bottom: 28px;
}

.settings-section-title {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

body.light-theme .settings-section-title {
    color: #64748b;
}

.settings-block {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

body.light-theme .settings-block {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #e2e8f0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.settings-row:active {
    background: rgba(255, 255, 255, 0.08);
}

body.light-theme .settings-row {
    color: #1e293b;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .settings-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .settings-row:active {
    background: rgba(0, 0, 0, 0.06);
}

.settings-row-danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

body.light-theme .settings-row-danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.settings-row-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.settings-row-label-wrap .settings-row-label {
    flex: 0 1 auto;
}

.settings-row-label {
    flex: 1;
}

.settings-row-icon {
    font-size: 22px;
    color: #64748b;
}

body.light-theme .settings-row-icon {
    color: #94a3b8;
}

.settings-row-danger .settings-row-icon {
    color: #f87171;
}

body.light-theme .settings-row-danger .settings-row-icon {
    color: #dc2626;
}

/* Строка с переключателем (не кнопка) */
.settings-row-with-toggle {
    cursor: default;
}

.settings-row-with-theme {
    cursor: default;
}

.settings-row-with-toggle:hover {
    background: transparent;
}

.settings-row-with-toggle:active {
    background: transparent;
}

.settings-row-with-select {
    cursor: default;
}

.settings-row-with-select:hover {
    background: transparent;
}

.settings-row-version {
    cursor: default;
}

.settings-row-version:hover {
    background: transparent;
}

.settings-select {
    padding: 8px 32px 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

.settings-select option {
    background: #2a2a2a;
    color: #e2e8f0;
}

.settings-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.settings-select:focus {
    outline: none;
    border-color: #5b8def;
}

body.light-theme .settings-select {
    color: #1e293b;
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .settings-select option {
    background: #fff;
    color: #1f2937;
}

body.light-theme .settings-select:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

body.light-theme .settings-select:focus {
    border-color: #4f7cff;
}

.settings-row-with-voice-lang {
    cursor: default;
}

.settings-row-with-voice-lang:hover {
    background: transparent;
}

.settings-voice-lang-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.settings-voice-lang-wrap .settings-select {
    min-width: 140px;
}

/* Мобилка: поля ввода и селекты — заголовок сверху, контроль на всю ширину */
@media (max-width: 480px) {
    .settings-row-with-select {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .settings-row-with-select .settings-row-label {
        flex: none;
    }

    .settings-row-with-select .settings-select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .settings-row-with-voice-lang {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .settings-row-with-voice-lang .settings-row-label {
        flex: none;
    }

    .settings-row-with-voice-lang .settings-voice-lang-wrap {
        flex: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .settings-row-with-voice-lang .settings-voice-lang-wrap .settings-select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .settings-row-with-voice-lang .settings-input {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

.settings-input {
    width: 6em;
    min-width: 5em;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-sizing: border-box;
}

.settings-input::placeholder {
    color: #64748b;
}

body.light-theme .settings-input {
    color: #1e293b;
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .settings-input::placeholder {
    color: #94a3b8;
}

.settings-row-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.settings-row-with-toggle .settings-row-content,
.settings-row-with-toggle > .settings-row-label {
    margin-right: 14px;
}

.settings-row-desc {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.35;
}

body.light-theme .settings-row-desc {
    color: #64748b;
}

.settings-section-title-sub {
    margin-top: 24px;
}

.budgets-list-block {
    margin-top: 10px;
}

.budgets-list {
    display: flex;
    flex-direction: column;
}

.budget-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.budget-list-item:last-child {
    border-bottom: none;
}

body.light-theme .budget-list-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.budget-list-item.active {
    background: rgba(34, 197, 94, 0.06);
}

body.light-theme .budget-list-item.active {
    background: rgba(34, 197, 94, 0.08);
}

.budget-list-name {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    color: #e2e8f0;
}

body.light-theme .budget-list-name {
    color: #1e293b;
}

.budget-list-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #22c55e;
}

.budget-list-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.budget-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.budget-list-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.light-theme .budget-list-btn {
    color: #94a3b8;
}

body.light-theme .budget-list-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

.budget-list-btn.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.budget-list-btn .material-icons {
    font-size: 22px;
}

/* Переключатель (toggle switch) */
.settings-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.settings-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.settings-toggle-track {
    position: relative;
    width: 50px;
    height: 30px;
    border-radius: 15px;
    background: #334155;
    transition: background 0.2s ease;
}

.settings-toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.settings-toggle-input:checked + .settings-toggle-track {
    background: #38bdf8;
}

.settings-toggle-input:checked + .settings-toggle-track::after {
    transform: translateX(20px);
}

body.light-theme .settings-toggle-track {
    background: #cbd5e1;
}

body.light-theme .settings-toggle-track::after {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

body.light-theme .settings-toggle-input:checked + .settings-toggle-track {
    background: #0ea5e9;
}

/* Диалоги подтверждения в настройках */
.settings-dialog {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.settings-dialog.active {
    display: flex;
    z-index: 1600;
}

#exitConfirmDialog.active {
    position: fixed;
    inset: 0;
}

.settings-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.settings-dialog-box {
    position: relative;
    background: #1e293b;
    color: #f1f5f9;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 280px;
    max-width: 340px;
}

body.light-theme .settings-dialog-box {
    background: #fff;
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.settings-dialog-text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #cbd5e1;
}

body.light-theme .settings-dialog-text {
    color: #475569;
}

.settings-dialog-text-small {
    margin-top: -12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #94a3b8;
}

body.light-theme .settings-dialog-text-small {
    color: #64748b;
}

.settings-dialog-input {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 14px;
    font-size: 15px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-sizing: border-box;
}

.settings-dialog-input::placeholder {
    color: #64748b;
}

body.light-theme .settings-dialog-input {
    color: #1e293b;
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .settings-dialog-input::placeholder {
    color: #94a3b8;
}

.settings-dialog-field {
    margin-bottom: 16px;
}

.settings-dialog-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

body.light-theme .settings-dialog-label {
    color: #64748b;
}

.settings-dialog-select {
    display: block;
    width: 100%;
    padding: 10px 32px 10px 14px;
    font-size: 15px;
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

.settings-dialog-select option {
    background: #2a2a2a;
    color: #e2e8f0;
}

.settings-dialog-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.settings-dialog-select:focus {
    outline: none;
    border-color: #5b8def;
}

body.light-theme .settings-dialog-select {
    color: #1e293b;
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

body.light-theme .settings-dialog-select option {
    background: #fff;
    color: #1f2937;
}

body.light-theme .settings-dialog-select:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

body.light-theme .settings-dialog-select:focus {
    border-color: #4f7cff;
}

.settings-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.settings-dialog-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.settings-dialog-btn-primary {
    background: #38bdf8;
    color: #0f172a;
}

.settings-dialog-btn-primary:hover {
    background: #7dd3fc;
}

.settings-dialog-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.settings-dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.settings-dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

body.light-theme .settings-dialog-btn-primary {
    background: #0ea5e9;
    color: #fff;
}

body.light-theme .settings-dialog-btn-primary:hover {
    background: #0284c7;
}

body.light-theme .settings-dialog-btn-primary:disabled {
    opacity: 0.5;
}

body.light-theme .settings-dialog-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

body.light-theme .settings-dialog-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.settings-dialog-btn-danger {
    background: #dc2626;
    color: #fff;
}

.settings-dialog-btn-danger:hover {
    background: #b91c1c;
}

.settings-dialog-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

body.light-theme .settings-dialog-btn-danger:hover {
    background: #b91c1c;
}

body.light-theme .settings-dialog-btn-danger:disabled {
    opacity: 0.5;
}

.settings-screen-phone {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: auto;
}

.settings-screen-phone-inner {
    padding: 20px;
    padding-bottom: 96px;
    min-height: 100%;
    color: #e2e8f0;
}

body.light-theme .settings-screen-phone-inner {
    color: #1e293b;
}

/* Экран «Настроить группы»: на весь экран, включая футер */
.groups-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #121212;
    z-index: 1600;
    overflow: hidden;
    flex-direction: column;
}

.groups-screen.active {
    display: flex;
}

@media (min-width: 769px) {
    .groups-screen {
        left: 50%;
        transform: translateX(-50%);
        max-width: 960px;
        width: 960px;
    }
}

body.groups-screen-open {
    overflow: hidden;
}

body.light-theme .groups-screen {
    background: #f8fafc;
}

.groups-screen-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .groups-screen-header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.groups-screen-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 8px 0 4px;
}

.groups-screen-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

body.light-theme .groups-screen-title {
    color: #1e293b;
}

.groups-screen-save {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.groups-screen-save:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.light-theme .groups-screen-save {
    color: #64748b;
}

body.light-theme .groups-screen-save:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #334155;
}

.groups-header-errors {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 13px;
    color: #fca5a5;
}

.groups-header-errors.hidden {
    display: none;
}

.groups-header-errors-icon {
    font-size: 18px;
    color: #f87171;
}

body.light-theme .groups-header-errors {
    background: rgba(220, 38, 38, 0.1);
    border-bottom-color: rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}

body.light-theme .groups-header-errors-icon {
    color: #dc2626;
}

.groups-screen-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    border-radius: 50%;
}

.groups-screen-back:hover {
    background: rgba(255, 255, 255, 0.08);
}

.groups-screen-back .material-icons {
    font-size: 24px;
}

body.light-theme .groups-screen-back {
    color: #1e293b;
}

body.light-theme .groups-screen-back:hover {
    background: rgba(0, 0, 0, 0.06);
}

.groups-screen-phone {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: auto;
}

.groups-screen-phone-inner {
    padding: 20px;
    padding-bottom: 96px;
    min-height: 100%;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.groups-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.groups-card-name {
    grid-column: 1 / 4;
    grid-row: 1;
    min-width: 0;
}

.groups-card-move-up {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
}

.groups-card-icon-btn {
    grid-column: 1;
    grid-row: 2;
}

.groups-card-color-swatch {
    grid-column: 2;
    grid-row: 2;
}

.groups-card-delete {
    grid-column: 3;
    grid-row: 2;
}

.groups-card-move-down {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
}

body.light-theme .groups-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.groups-card-icon-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.groups-card-icon-btn .material-icons {
    font-size: 24px;
}

.groups-card-color-swatch {
    width: 22px;
    height: 22px;
    justify-self: start;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.groups-card-name {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}

.groups-card-name:focus {
    outline: none;
    border-color: #5b8def;
}

body.light-theme .groups-card-name {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1e293b;
}

.groups-card-move {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.groups-card-move:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.groups-card-move:disabled {
    opacity: 0.4;
    cursor: default;
}

.groups-card-delete {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.groups-card-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.groups-fab {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #5b8def;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(91, 141, 239, 0.4);
}

.groups-fab:hover {
    background: #4a7ad4;
}

.groups-fab .material-icons {
    font-size: 28px;
}

body.light-theme .groups-fab {
    background: #4f7cff;
}

body.light-theme .groups-fab:hover {
    background: #3d6ae6;
}

.groups-confirm {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.groups-confirm.active {
    display: flex;
}

.groups-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.groups-confirm-box {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    max-width: 320px;
    width: 100%;
}

.groups-confirm-text {
    margin: 0 0 16px;
    color: #e2e8f0;
    font-size: 16px;
}

.groups-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.groups-confirm-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.groups-confirm-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.groups-confirm-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.groups-confirm-delete:hover {
    background: rgba(239, 68, 68, 0.35);
}

body.light-theme .groups-confirm-box {
    background: #fff;
}

body.light-theme .groups-confirm-text {
    color: #1e293b;
}

body.light-theme .groups-confirm-cancel {
    background: rgba(0, 0, 0, 0.08);
    color: #334155;
}
