/* Styles für Produktivitätsfeatures: Fokus-Timer und Delegationshilfe */

/* Fokus-Timer Styles */
.focus-timer-container {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slidein 0.3s ease-out;
    position: relative;
}

@keyframes slidein {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.focus-timer-info {
    display: flex;
    flex-direction: column;
}

.focus-timer-task {
    font-weight: bold;
    margin-bottom: 5px;
}

#focus-timer-display {
    font-size: 1.8em;
    font-family: monospace;
    font-weight: bold;
    color: #e74c3c;
}

.focus-timer-controls {
    display: flex;
    gap: 10px;
}

.focus-timer-button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.focus-timer-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.focus-timer-button.primary {
    background-color: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.focus-timer-button.primary:hover {
    background-color: #c0392b;
}

/* Delegation Modal Styles */
.delegation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.delegation-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.delegation-form-group {
    margin-bottom: 15px;
}

.delegation-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.delegation-form-group input,
.delegation-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.delegation-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.delegation-modal-buttons button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#delegation-cancel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

#delegation-submit {
    background-color: #3498db;
    border: none;
    color: white;
}

/* Task-Action Buttons Styling */
.task-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.task-action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.task-action-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-action-btn.focus-btn {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.task-action-btn.focus-btn:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.task-action-btn.delegate-btn {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.task-action-btn.delegate-btn:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

/* Feature-Badges für die Eisenhower-Kategorien */
.feature-badge {
    display: inline-block;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 10px;
    margin-left: 3px;
    background-color: #f1c40f;
    color: #7f5803;
    font-weight: bold;
    vertical-align: middle;
    position: absolute;
    top: -8px;
    right: -8px;
}

.feature-badge.focus {
    background-color: #e74c3c;
    color: white;
}

.feature-badge.delegate {
    background-color: #3498db;
    color: white;
}

/* Dark Mode */
body.eisenhower-dark-mode .focus-timer-container {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

body.eisenhower-dark-mode .focus-timer-button {
    background-color: #444;
    border-color: #555;
    color: #ddd;
}

body.eisenhower-dark-mode .focus-timer-button:hover {
    background-color: #555;
}

body.eisenhower-dark-mode .focus-timer-button.primary {
    background-color: #e74c3c;
    color: #fff;
    border-color: #c0392b;
}

body.eisenhower-dark-mode .focus-timer-button.primary:hover {
    background-color: #c0392b;
}

body.eisenhower-dark-mode .delegation-modal-content {
    background-color: #333;
    color: #ddd;
}

body.eisenhower-dark-mode .delegation-form-group input,
body.eisenhower-dark-mode .delegation-form-group textarea {
    background-color: #444;
    border-color: #555;
    color: #ddd;
}

body.eisenhower-dark-mode #delegation-cancel {
    background-color: #444;
    border-color: #555;
    color: #ddd;
}

body.eisenhower-dark-mode .task-action-btn {
    background-color: #444;
    border-color: #555;
    color: #ddd;
}

body.eisenhower-dark-mode .task-action-btn:hover {
    background-color: #555;
}

body.eisenhower-dark-mode .task-action-btn.focus-btn {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.2);
}

body.eisenhower-dark-mode .task-action-btn.delegate-btn {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.2);
}

body.eisenhower-dark-mode .feature-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .focus-timer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .focus-timer-controls {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .focus-timer-button {
        flex: 1;
        text-align: center;
    }
    
    .delegation-modal-content {
        width: 95%;
        padding: 15px;
    }
}
