/* ============================================================
   D-Day Exam Target Banner Tile Styles (Theme Sensitive & Compact)
   ============================================================ */

.dday-banner-tile {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dday-banner-tile.unconfigured {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.18));
}

.dday-banner-tile.unconfigured:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.07));
    border-color: var(--primary-color, #a855f7);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-primary, 0 4px 16px rgba(168, 85, 247, 0.15));
}

.dday-banner-tile.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(192, 132, 252, 0.06) 100%);
    border: 1px solid rgba(192, 132, 252, 0.35);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.18);
}

html[data-theme="obsidian"] .dday-banner-tile.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.18);
}

html[data-theme="linen"] .dday-banner-tile.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(194, 94, 0, 0.05) 100%);
    border: 1px solid rgba(217, 119, 6, 0.3);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.dday-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dday-banner-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dday-banner-icon-wrap.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(192, 132, 252, 0.15));
    border-color: rgba(192, 132, 252, 0.4);
}

html[data-theme="obsidian"] .dday-banner-icon-wrap.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.15));
    border-color: rgba(245, 158, 11, 0.4);
}

.dday-banner-icon {
    font-size: 1rem;
    color: var(--text-secondary);
}

.dday-banner-icon-pulse {
    font-size: 1rem;
    color: #c084fc;
    animation: ddayPulse 2s infinite ease-in-out;
}

html[data-theme="obsidian"] .dday-banner-icon-pulse {
    color: #fbbf24;
}

@keyframes ddayPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.18); opacity: 1; text-shadow: 0 0 8px rgba(192, 132, 252, 0.8); }
}

.dday-banner-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dday-banner-label {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.dday-banner-subtext {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.dday-banner-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dday-banner-date-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dday-banner-right {
    flex-shrink: 0;
}

.dday-action-pill {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.dday-banner-countdown-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
    white-space: nowrap;
}

html[data-theme="obsidian"] .dday-banner-countdown-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #181104;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.dday-banner-countdown-badge.today {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    animation: ddayPulse 1.5s infinite ease-in-out;
}

/* Settings Data Tab Target Card */
.dday-form-card {
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dday-form-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 8px;
}

@media (max-width: 640px) {
    .dday-form-grid {
        grid-template-columns: 1fr;
    }

    .dday-banner-tile {
        padding: 8px 12px;
    }

    .dday-banner-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .dday-banner-title {
        font-size: 0.86rem;
    }

    .dday-banner-countdown-badge {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}

.dday-input {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.2s;
}

.dday-input:focus {
    border-color: var(--primary-color, #8b5cf6);
    box-shadow: 0 0 0 2px var(--primary-glow, rgba(139, 92, 246, 0.2));
}

.dday-submit-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 0.83rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

html[data-theme="obsidian"] .dday-submit-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #181104;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.dday-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.dday-modal-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 2px;
}

.dday-modal-list-wrap::-webkit-scrollbar {
    width: 4px;
}
.dday-modal-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dday-exam-card {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.2s;
}

.dday-exam-card:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.06));
    border-color: var(--border-hover, rgba(255, 255, 255, 0.12));
}

.dday-exam-card.expired {
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.15);
}

.dday-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dday-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dday-card-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.dday-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dday-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dday-status-pill {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dday-status-pill.active {
    background: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

html[data-theme="obsidian"] .dday-status-pill.active {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dday-status-pill.today {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: ddayPulse 1.5s infinite ease-in-out;
}

.dday-status-pill.expired {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.dday-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.dday-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.dday-empty-state {
    text-align: center;
    padding: 18px 10px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}
