.drt-tracker {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.drt-title {
    margin: 0;
    font-size: 1.75rem;
    color: #1f2937;
    font-weight: 600;
}

.drt-clear {
    padding: 0.5rem 1.25rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.drt-clear:hover {
    background: #dc2626;
}

.drt-clear:active {
    transform: scale(0.98);
}

.drt-clear:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.drt-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drt-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.drt-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.drt-block-morning {
    border-top: 4px solid #f59e0b;
}

.drt-block-afternoon {
    border-top: 4px solid #3b82f6;
}

.drt-block-evening {
    border-top: 4px solid #8b5cf6;
}

.drt-block-header {
    margin-bottom: 1rem;
}

.drt-block-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
}

.drt-block-time {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.drt-block-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drt-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.drt-note {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.drt-note:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.drt-minutes {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.drt-minute-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drt-minute-input label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.drt-work-min,
.drt-break-min {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.2s;
}

.drt-work-min:focus,
.drt-break-min:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.drt-summary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.drt-summary-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
}

.drt-summary-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.drt-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drt-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.drt-total-work,
.drt-total-break {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.drt-summary-list {
    margin-top: 1rem;
}

.drt-summary-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.drt-summary-item strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.drt-summary-text {
    color: #4b5563;
    display: block;
    margin-bottom: 0.25rem;
}

.drt-summary-time {
    color: #6b7280;
    font-size: 0.85rem;
}

.drt-no-entries {
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

.drt-notice {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.drt-notice-success {
    background: #10b981;
    color: white;
}

.drt-notice-error {
    background: #ef4444;
    color: white;
}

@media (max-width: 768px) {
    .drt-tracker {
        padding: 1rem;
        margin: 1rem;
    }
    
    .drt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .drt-blocks {
        grid-template-columns: 1fr;
    }
    
    .drt-summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .drt-notice {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drt-notice {
        animation: none;
    }
    
    .drt-clear:active {
        transform: none;
    }
}
