/* ========== BULK DELETE ========== */
.bulk-delete-container {
    display: flex;
    justify-content: flex-end;
    max-width: 900px;
    margin: 1rem auto 2rem auto;
}

.danger-button {
    --md-filled-button-container-color: var(--md-sys-color-error);
    --md-filled-button-label-text-color: var(--md-sys-color-on-error);
    --md-filled-button-icon-color: var(--md-sys-color-on-error);
}

/* ========== DIALOG STYLES ========== */
.confirm-dialog {
    border: none;
    border-radius: 28px;
    padding: 0;
    background-color: var(--md-sys-color-surface-container-high);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 400px;
}

.confirm-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.dialog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dialog-content h3 {
    margin: 0;
    color: var(--md-sys-color-on-surface);
    font-size: 1.5rem;
}

.dialog-content p {
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
}

.dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dialog-btn {
    padding: 10px 24px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    font-family: var(--md-ref-typeface-plain, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-primary);
}

.dialog-btn:hover {
    background-color: var(--md-sys-color-surface-container);
}

.dialog-btn.danger {
    background-color: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
}

.dialog-btn.danger:hover {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.dialog-btn.secondary {
    background-color: transparent;
    color: var(--md-sys-color-on-surface-variant);
}

.dialog-btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dialog-btn.outlined {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}

.dialog-btn.outlined:hover {
    background-color: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

/* ========== PAGE TRANSITIONS ========== */
#app-container {
    transition: filter 300ms cubic-bezier(0.4, 0.0, 0.2, 1),
        opacity 300ms cubic-bezier(0.4, 0.0, 0.2, 1),
        transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

#app-container.page-transitioning-out {
    filter: blur(8px);
    opacity: 0.7;
    transform: scale(0.98);
}

#app-container.page-transitioning-in {
    animation: unblur-in 300ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes unblur-in {
    from {
        filter: blur(8px);
        opacity: 0.7;
        transform: scale(0.98) translateY(10px);
    }

    to {
        filter: blur(0);
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========== SKELETON SCREENS ========== */
.skeleton-card,
.skeleton-header,
.skeleton-body,
.skeleton-item {
    pointer-events: none;
}

.skeleton-line {
    height: 1rem;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

html[data-theme="dark"] .skeleton-line::after {
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.title-width {
    width: 60%;
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.title-large-width {
    width: 80%;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.date-width {
    width: 30%;
    height: 0.9rem;
}

.text-width {
    width: 90%;
    height: 0.875rem;
    margin-top: 0.5rem;
}

.text-width-variable {
    width: 70%;
    height: 0.875rem;
}

.skeleton-button {
    width: 100px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--md-sys-color-surface-variant);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

html[data-theme="dark"] .skeleton-button::after {
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
}

.skeleton-paragraph {
    width: 100%;
    height: 1.1rem;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 4px;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
}

.skeleton-paragraph::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

html[data-theme="dark"] .skeleton-paragraph::after {
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
}

.skeleton-paragraph.short {
    width: 60%;
}

.skeleton-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background-color: var(--md-sys-color-surface-variant);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skeleton-checkbox::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

html[data-theme="dark"] .skeleton-checkbox::after {
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
}