/* Task Card Styles */
/*.task-card {
    /*margin-bottom: 0;*/
    /* Other styles inherited from .interactive-card */
}
*/
.task-card.dimmed {
    opacity: 0.7;
}

.task-card.overdue {
    border: 1px solid #fca5a5;
}

.interactive-card.task-card.overdue:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    border-color: #ef4444;
}

/* Header: shared styles in application.css */
/* Title: shared styles in application.css */

.task-card-title.completed {
    text-decoration: line-through;
    color: var(--muted-text-color);
}

.task-card-parent {
    font-size: 0.8rem;
    color: var(--muted-text-color);
    margin-top: 0.1rem;
}

.task-card-actions {
    display: flex;
    gap: 0.5rem;
}

.task-card-action {
    color: var(--muted-text-color);
    display: flex;
    align-items: center;
}

.task-card-action.danger {
    color: #dc3545;
}

.task-card-badgerow {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.task-status-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* Base pill shared in application.css */

.task-pill.schedule {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.task-pill.schedule:hover {
    background-color: #c8e6c9;
}

.task-pill.duration {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.task-pill.duration:hover {
    background-color: #bbdefb;
}

.task-pill.add {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: var(--muted-text-color);
    border: 1px dashed #ccc;
}

.task-pill.add:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.task-duration-popup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    margin-top: 0.5rem;
}

.task-popup-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.4rem;
}

.task-popup-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.task-duration-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.task-duration-btn {
    flex: 1 0 28%;
    font-size: 0.8rem;
    padding: 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
    background: white;
    color: #333;
}

.task-duration-btn.active {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.task-popup-actions {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.task-popup-cancel {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    color: var(--muted-text-color);
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.task-popup-submit {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.task-card-description {
    color: var(--muted-text-color);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.task-due-date {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #999;
}

.task-due-date.overdue {
    color: #dc2626;
    font-weight: 600;
}

.task-due-date-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s;
    background-color: var(--hover-bg, #f5f5f5);
    border: 1px solid transparent;
}

.task-due-date-summary:hover,
.task-due-date-summary:active {
    background-color: #e5e7eb;
    color: var(--primary-color, #2563eb);
}

/* Task Card Refactor Classes */
.task-card-parent-link {
    color: inherit;
    text-decoration: underline;
}

.task-status-badge.overdue-badge {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

.task-details-wrapper {
    position: relative;
    display: inline-block;
}

.task-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
}

.task-popup-container {
    margin-bottom: 1rem;
}

.task-popup-due-date {
    bottom: 100%;
    top: auto;
    margin-bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.task-footer-btn.start {
    background-color: #fcf3cf;
    color: #f39c12;
}

.task-footer-btn.pause {
    background-color: #e8daef;
    color: #8e44ad;
}

.task-footer-btn.resume {
    background-color: #fcf3cf;
    color: #f39c12;
}

.task-footer-btn.complete {
    background-color: #d4efdf;
    color: #27ae60;
}

.task-footer-btn.cancel {
    background-color: #e5e7eb;
    color: #6b7280;
}

.task-footer-btn.missed {
    background-color: #fee2e2;
    color: #dc2626;
}

.task-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    align-items: center;
    flex-wrap: wrap;
}

.task-footer-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Daily View Styles */
.daily-container {
    width: 100%;
    box-sizing: border-box;
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.daily-nav-link {
    text-decoration: none;
    color: #666;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.daily-date-group {
    text-align: center;
}

.daily-day-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.daily-date-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
}

.daily-year-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.daily-quick-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.daily-nav-pill {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.daily-nav-pill.active {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    cursor: default;
}

.daily-nav-pill.inactive {
    background-color: #ffffff;
    color: #4a4a4a;
    text-decoration: none;
    border: 1px solid #eee;
}

.daily-datepicker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 40px;
    padding: 0 1rem;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.daily-datepicker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.daily-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 0.5rem;
}

.daily-task-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.daily-empty {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.daily-add-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.daily-add-btn:hover {
    background-color: #1d4ed8;
}

/* Show View Styles */




.show-details-card {
    margin-bottom: 2rem;
}

.show-meta-row {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #eee);
}

.show-meta-label {
    font-size: 0.85rem;
    color: var(--muted-text-color);
    margin-bottom: 0.2rem;
}

.show-meta-value {
    font-weight: 600;
}

.show-subtasks-section {
    margin-top: 3rem;
}

.subtask-form-wrapper {
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    border: 1px dashed var(--border-color, #ddd);
}

.subtask-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Form Styles */


.task-duration-chip {
    border: 1px solid #ddd;
    background: white;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.task-duration-chip.active {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.task-form-duration-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.task-form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background-color: #fecaca;
}

.floating-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    animation: fadeOut 3s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}