/* ===================================
    CALM DASHBOARD - Hauptstile
=================================== */

.calm-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-primary-light),
        var(--color-accent-orange-opacity-25)
    ) !important;
    backdrop-filter: blur(12px);
    opacity: 1;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999 !important;
    padding: 20px;
    min-height: 100%;
}

.calm-dashboard-box {
    background: url('/wp-content/uploads/dashboard/dashboard_bg.png'), 
    linear-gradient(
        135deg,
        rgba(223, 247, 241, 0.8) 0%,
        rgba(210, 195, 255, 0.8) 50%,
        rgba(180, 220, 255, 0.55) 100%
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.35);
    width: 90%;
    max-height: var(--popup-max-height);
    display: flex;
    flex-direction: column;
    align-self: start;
    margin-top: var(--popup-margin-top);
}

.calm-dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    flex-wrap: wrap;
    display: flex;
}

.calm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    background: none;
    border-bottom: none;
    flex-shrink: 0;
}

.calm-dashboard-header h2 {
    color: #5A4A6F;
    margin: 0;
}

/* Header Sektion */
.db-header {
    padding: 18px 24px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.2) 100%);
    margin: 20px;
    margin-bottom: 0;
    width: 100%;
}

.db-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.db-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #5A4A6F;
    font-weight: 600;
}

.db-header p {
    margin: 4px 0 0;
    color: #5A4A6F;
    font-size: 1rem;
    font-weight: 500;
}

.db-announcement-btn-small {
    background: linear-gradient(90deg, rgba(255, 244, 194, 0.48) 0%, rgba(247, 200, 165, 0.73) 100%);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #5A4A6F;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-right: 20px;
    margin-top: 20px;
    align-self: center;
    height: max-content;
    margin-left: 20px;
}

.db-announcement-btn-small:hover {
    background: linear-gradient(90deg, rgba(247, 200, 165, 0.73) 0%, rgba(255, 244, 194, 0.73) 100%);
    box-shadow: 0 2px 8px var(--color-primary-opacity-20);
    color: #5A4A6F !important;
}

/* Wichtige Neuigkeiten Flagge */
.db-news-flag {
    background: linear-gradient(90deg,rgba(107, 178, 207, 0.32) 0%, rgba(83, 237, 229, 0.22) 100%);
    border-left: 4px solid #2E8BC0;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
    height: max-content;
    width: 100%;

}

.db-news-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: space-between;
}

.db-news-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.db-news-text {
    color: #5A4A6F;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.db-delete-announcement {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.db-delete-announcement:hover {
    background: rgba(244, 67, 54, 0.35);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.25);
    transform: scale(1.05);
}

/* Sektionen */
.db-section-posts,
.db-section-todos,
.db-section-events {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.db-section:last-of-type {
    border-bottom: none;
}

.db-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-left: 4px solid #FFFF;
}

.db-section-header h4 {
    margin: 0 !important;
    color: #5A4A6F;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.db-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.db-loading {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

/* Grid Layout */
.db-items-grid {
    display: flex;
    gap: 16px;
    justify-content: start;
}

.db-posts-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Event Card */
.db-event-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-height: 150px;
    width: fit-content;
}

.db-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.db-event-header {
    margin-bottom: 12px;
}

.db-event-header h5 {
    margin: 0 0 8px;
    color: #5A4A6F;
    font-weight: 600;
    font-size: 1rem;
}

.db-event-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.db-event-status-booked {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.db-event-status-waitlist {
    background: rgba(255, 193, 7, 0.2);
    color: #F57F17;
}

.db-event-status-full {
    background: rgba(244, 67, 54, 0.2);
    color: #C62828;
}

.db-event-status-available {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.db-event-body {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #5A4A6F;
}

.db-event-date,
.db-event-time {
    margin-bottom: 6px;
}

.db-event-capacity {
    display: none;
}

.db-event-footer {
    display: flex;
    justify-content: flex-end;
}

.db-event-link {
    color: #2EC4C9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.db-event-link:hover {
    color: var(--color-accent-orange);
}

/* Post Card */
.db-post-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.db-post-header {
    margin-bottom: 12px;
}

.db-post-header h5 {
    margin: 0;
    color: #5A4A6F;
    font-weight: 600;
    font-size: 1rem;
}

.db-post-body {
    display: none;
}

.db-post-body p {
    margin: 0 0 12px;
    color: #5A4A6F;
    font-size: 0.9rem;
    line-height: 1.4;
}

.db-post-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.db-post-topic {
    display: inline-block;
    background: var(--color-primary-opacity-20);
    color: #2EC4C9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.db-post-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #999;
}

.db-post-meta {
    white-space: nowrap;
}

.db-post-link {
    margin-left: auto;
    color: #2EC4C9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.db-post-link:hover {
    color: var(--color-accent-orange);
}

/* Benachrichtigungen Badge */
.db-notification-badge {
    background: rgba(244, 67, 54, 0.2);
    color: #C62828;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 20px;
    text-align: center;
    font-weight: 600;
}

/* Menu Tiles */
.calm-dashboard-tiles {
    width: 100%;
    margin: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 70px;
    grid-auto-flow: dense;
    gap: 20px;
    justify-self: center;
}

.calm-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-size: 18px;
    font-weight: 600;
    color: #5A4A6F;
    text-decoration: none;
    width: 100%;
    height: auto;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calm-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    color: var(--color-accent-orange);
}

/* Announcement Overlay */
.db-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--pale-mint),
        var(--color-accent-orange-opacity-25)
    ) !important;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px) saturate(10%);
    display: none;
    pointer-events: none;
}

.db-announcement-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mini-Ankündigung Popup - wie andere Popups im System */
.db-announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px) saturate(10%);
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--pale-mint),
        var(--color-accent-orange-opacity-25)
    ) !important;

}

.db-announcement-popup.show {
    display: flex !important;
}

.db-announcement-popup-content {
    background: var(--white-glass-strong);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 18px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(64, 64, 64, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.db-announcement-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.db-announcement-popup-header h4 {
    margin: 0;
    color: #5A4A6F;
    font-size: 1.2rem;
    font-weight: 600;
}

.db-popup-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--purple);
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.db-popup-close:hover {
    color: #999;
}

.db-announcement-popup-input {
    padding: 12px 14px;
    border: 1.5px solid var(--color-primary-opacity-30);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #5A4A6F;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.db-announcement-popup-input::placeholder {
    color: var(--color-secondary-opacity-40);
}

.db-announcement-popup-input:focus {
    outline: none;
    border-color: #2EC4C9;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 12px var(--color-primary-light);
}

.db-announcement-popup-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 4px;
}

.db-popup-btn-primary,
.db-popup-btn-secondary {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.db-popup-btn-primary {
    background: linear-gradient(135deg, rgba(195, 235, 255, 0.55), rgba(205, 255, 235, 0.45));
    color: #5A4A6F;
    box-shadow: 0 4px 15px rgba(64, 64, 64, 0.2);
    font-weight: 600;
}

.db-popup-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #27B0B4, #00ACC1);
    box-shadow: 0 6px 16px var(--color-primary-opacity-30);
    transform: translateY(-1px);
}

.db-popup-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.db-popup-btn-secondary {
    background: linear-gradient(135deg, rgba(220, 210, 255, 0.55), rgba(255, 225, 210, 0.45));
    color: var(--purple);
    border: none;
    backdrop-filter: blur(10px);
}

.db-popup-btn-secondary:hover {
    background: var(--color-secondary-opacity-15);
    border-color: var(--color-secondary-opacity-30);
}

/* Toast Notifications */
#db-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 999999;
    max-width: 320px;
    color: #5A4A6F;
    font-weight: 500;
    font-size: 0.95rem;
}

#db-toast.show {
    opacity: 1;
    transform: translateY(0);
}

#db-toast.error {
    border-left-color: #e74c3c;
}

/* Confirm Dialog */
.db-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-primary-light),
        var(--color-accent-orange-opacity-25)
    ) !important;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.db-confirm-overlay.show {
    opacity: 1;
}

.db-confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    width: 420px;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.db-confirm-dialog.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.db-confirm-content {
    padding: 24px;
}

.db-confirm-content h4 {
    margin: 0 0 12px 0;
    color: #5A4A6F;
    font-size: 1.2rem;
    font-weight: 600;
}

.db-confirm-content p {
    margin: 0 0 20px 0;
    color: #5A4A6F;
    font-size: 0.95rem;
    line-height: 1.5;
}

.db-confirm-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.db-confirm-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.db-confirm-btn-secondary {
    background: var(--color-secondary-opacity-10);
    color: #5A4A6F;
    border: 1px solid var(--color-secondary-opacity-20);
}

.db-confirm-btn-secondary:hover {
    background: var(--color-secondary-opacity-15);
    border-color: var(--color-secondary-opacity-30);
}

.db-confirm-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.db-confirm-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
    transform: translateY(-1px);
}

.db-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ===================================
    ⭐ NEU: TODO CARD STYLES
=================================== */

.db-todo-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(245,250,255,0.6));
    border: 1px solid rgba(200, 220, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-todo-card:hover {
    border-color: rgba(100, 180, 255, 0.6);
    box-shadow: 0 4px 12px rgba(100, 180, 255, 0.15);
    transform: translateY(-2px);
}

.db-todo-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.db-todo-checkbox {
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #2ecc71;
}

.db-todo-title {
    margin: 0;
    font-size: 1rem;
    color: #5A4A6F;
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-word;
}

.db-todo-title.completed {
    color: #95a5a6;
    text-decoration: line-through;
    opacity: 0.7;
}

.db-todo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.db-todo-priority {
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid;
    background: rgba(255,255,255,0.5);
    font-weight: 500;
    font-size: 0.8rem;
    color: #5A4A6F;
}

.db-todo-date {
    color: #7f8c8d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.db-todo-assignment {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-opacity-20), rgba(255, 153, 102, 0.2));
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #5A4A6F;
    font-weight: 500;
    margin: 8px 0 8px 0;
    border-left: 3px solid #2ecc71;
}


/* ===================================
    TODO MODAL STYLING
=================================== */

.db-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.db-modal-overlay.show {
    display: flex;
}

.db-modal {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,245,250,0.95));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.db-modal.hide {
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

.db-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    background: linear-gradient(135deg, rgba(46, 196, 201, 0.1), rgba(255, 153, 102, 0.1));
}

.db-modal-header h4 {
    margin: 0;
    color: #5A4A6F;
    font-size: 1.2rem;
    font-weight: 600;
}

.db-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--purple);
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.db-modal-close:hover {
    color: #999;
    transform: scale(1.2);
}

.db-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.db-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-form-group label {
    color: #5A4A6F;
    font-weight: 500;
    font-size: 0.95rem;
}

.db-input,
.db-select,
.db-textarea {
    padding: 10px 12px;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.7);
    color: #5A4A6F;
    transition: all 0.2s ease;
}

.db-input:focus,
.db-select:focus,
.db-textarea:focus {
    outline: none;
    border-color: #2ecc71;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.db-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.db-modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    justify-content: flex-end;
    background: rgba(245, 245, 245, 0.3);
}

.db-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.db-btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.db-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.db-btn-primary:active {
    transform: translateY(0);
}

.db-btn-secondary {
    background: rgba(200, 200, 200, 0.3);
    color: #5A4A6F;
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.db-btn-secondary:hover {
    background: rgba(200, 200, 200, 0.5);
}

.db-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.db-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.db-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.orga-todos-create-button-bar {
    width: fit-content;
    white-space: nowrap;
    margin-bottom: 0; 
}

.orga-todos-filter {
    flex-wrap: nowrap;
    margin: 0; 
    align-self: center;
}

.orga-todos-filter-btn {
    min-width: fit-content;
    height: min-content;
}

#db-todos-container {
    flex-wrap: wrap;
    justify-content: space-between;
}

.orga-todos-empty {
    padding: 0; 
}

.orga-todos-create-button-bar .orga-todos-btn {
    padding: 8px;
    font-size: 12px;
}

/*scrollbar*/ 
.calm-dashboard-content::-webkit-scrollbar {
    width: 12px !important;
}

.calm-dashboard-content::-webkit-scrollbar-track {
    background: var(--color-primary-soft) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(6px) !important;
}

.calm-dashboard-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-medium) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px) saturate(160%) !important;
}

.calm-dashboard-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-strong) !important;
}

.news-area {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;

}

.db-section-events, 
.db-section-posts {
    width: 50%;

}

.db-section-todos {
    width: 100%;
}


/* Mobile Responsiv */
@media (max-width: 768px) {
    .calm-dashboard-overlay {
        align-items: center;
        padding: 12px;
    }

    .calm-dashboard-box {
        width: 100%;
        height: var(--popup-max-height);
        border-radius: 12px;
        align-self: end;
    }

    .calm-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 16px;
    }

    .calm-dashboard-content {
        padding: 0 6px 12px;
    }

    .db-header {
        margin: 12px 10px 0;
        padding: 10px;
        text-align: left;
    }

    .db-header h3 {
        font-size: 1.2rem !important;
        margin: 0.2rem 0rem !important;
    }

    .db-header p {
        font-size: 0.9rem !important;
    }
    .db-header-top {
        flex-direction: column;
        gap: 6px;
    }

    .db-announcement-btn-small {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .news-area {
        flex-direction: column;
        padding: 10px;
        padding-bottom: 0;
    }
    .db-news-flag {
        margin: 0;
        align-items: center;
    }

    .db-news-content {
        align-items: center;
        gap: 10px;
    }

    .db-section-header {
        align-items: flex-start;
        gap: 0 !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .db-section-header h4 {
        font-size: 1rem;
    }

    .db-items-grid,
    .db-posts-grid {
        flex-direction: column;
        width: 100%;
    }

    .calm-dashboard-tiles {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .calm-tile {
        padding: 16px 12px;
        font-size: 15px;
    }

    .db-section-events, 
    .db-section-posts, 
    .db-section-todos {
        width: 100% !important;
        padding: 10px !important;
    }

    .db-items-grid, 
    .db-posts-grid {
        gap: 12px;
    }

    .db-event-card,
    .db-post-card {
        width: 100%;
        max-width: none;
        padding: 5px 10px !important;
    }

    .db-event-header h5, 
    .db-post-header h5 {
        font-size: 0.9rem !important;
        margin: 0.2rem 0rem !important;
    }

    .db-event-header, 
    .db-post-header {
        margin-bottom: 8px !important;
    }

    .db-event-body, 
    .db-post-body {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }

    .db-post-footer {
        font-size: 0.75rem !important;
    }
    .db-modal {
        width: 96%;
        max-height: 85vh;
    }

    .db-modal-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {

    .calm-dashboard-header h2 {
        font-size: 1.1rem;
    }

    .db-header h3 {
        font-size: 1.3rem;
    }

    .db-header p {
        font-size: 0.9rem;
    }

    .db-announcement-btn-small,
    .db-popup-btn-primary,
    .db-popup-btn-secondary,
    .db-confirm-btn,
    .db-btn {
        width: 100%;
        justify-content: center;
    }

    .db-modal-footer,
    .db-announcement-popup-footer,
    .db-confirm-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .db-confirm-dialog {
        width: 90%;
    }

    .db-event-footer,
    .db-post-footer {
        flex-direction: column;
        gap: 6px;
    }

    .db-post-link {
        margin-left: 0;
    }
}


