/* Dark theme, low contrast, animations */
.dtm-frontend {
    max-width: 1000px;
    margin: 30px auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #121212;
    padding: 20px;
    border-radius: 16px;
    color: #ccc;
}
.dtm-frontend .dtm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.dtm-frontend .dtm-tab {
    background: #1e1e1e;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: #aaa;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    font-size: 16px;
}
.dtm-frontend .dtm-tab.active {
    background: #2a2a2a;
    color: #fff;
    box-shadow: 0 0 10px rgba(33,150,243,0.3);
}
.dtm-count {
    color: #4caf50;
    margin-left: 6px;
}
.dtm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.dtm-tile {
    background: rgba(30,30,30,0.8);
    backdrop-filter: blur(6px);
    border: 1px solid #2196F3;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
    animation: dtmFadeSlide 0.4s ease;
}
.dtm-tile.completed {
    border-color: #424242;
    background: rgba(40,40,40,0.7);
    opacity: 0.85;
}
.dtm-tile h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #e0e0e0;
}
.dtm-tile .dtm-link {
    color: #81d4fa;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}
.dtm-tile .dtm-datetime {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}
.dtm-tile .dtm-comment {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 14px;
}
.dtm-btn {
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    font-size: 0.9rem;
}
.btn-done {
    background: #81C784;
    color: #121212;
}
.btn-done.completed-btn {
    background: #616161;
    color: #ddd;
    cursor: default;
}
.btn-undo {
    background: #ffb74d;
    color: #1e1e1e;
}
@keyframes dtmFadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .dtm-tiles {
        grid-template-columns: 1fr;
    }
}