/* Recurring Task Detail View Styles */




.recurring-hidden {
    display: none;
}

.recurring-mt-sm {
    margin-top: 0.5rem;
}

.recurring-mb-1rem {
    margin-bottom: 1rem;
}

.recurring-ml-sm {
    margin-left: 0.5rem;
}


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

.back-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.recurring-task-title {
    margin: 0;
}

.overview-card {
    margin-bottom: 2rem;
}

.overview-heading {
    margin-top: 0;
    color: #666;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overview-content {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.overview-details {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.detail-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-weight: 600;
}

/* Stats Section */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    flex: 1;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-value.green {
    color: #27ae60;
}

.stat-value.blue {
    color: #2980b9;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* History Section */
.history-heading {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.timeline-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-arrow {
    text-decoration: none;
    color: #666;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.nav-arrow.disabled {
    color: #ccc;
    cursor: default;
}

.timeline-label {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-label.year-heading {
    margin-bottom: 1.5rem;
}

/* Calendar Month View */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.weekday-header {
    font-size: 0.8rem;
    color: #999;
    padding-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    position: relative;
}

.day-number {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.day-number.today {
    color: #2980b9;
    font-weight: 700;
}

.day-progress {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
    font-weight: 500;
}

.day-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
    max-width: 100%;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--dot-color, #ccc);
    /* Default fallback */
}

/* Year View */
.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.month-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.8rem;
    background-color: #fff;
}

.month-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.month-dots {
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
}

.month-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: title;
    background-color: var(--dot-color, #ccc);
}

.empty-month-dot {
    color: #eee;
    font-size: 1.2rem;
}

/* Activity Lists */
.activity-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.activity-column {
    flex: 1;
    min-width: 300px;
}

.activity-heading {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.empty-activity {
    color: var(--muted-text-color);
    font-style: italic;
}

/* --- New Styles for Index and Cards --- */

/* Index Page */
/* Recurring Tasks Index */






/* Recurring Card */
.recurring-card {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
    /* Other styles inherited from .interactive-card */
}

/* Header & Title shared in application.css */

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

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

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

.recurring-card-meta {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Base pill shared in application.css */

.recurring-pill.frequency {
    background-color: #e3f2fd;
    color: #1976d2;
}

.recurring-pill.info {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.recurring-pill.add {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #666;
    border: 1px dashed #ccc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.recurring-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: 240px;
    margin-top: 0.5rem;
}

.recurring-duration-heading {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.recurring-duration-btn {
    flex: 1 0 28%;
    font-size: 0.8rem;
    padding: 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.recurring-card-description {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.recurring-section {
    margin-bottom: 1.5rem;
}

.recurring-section-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.recurring-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recurring-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.recurring-tag.time {
    background-color: #fff3cd;
    color: #856404;
}

.recurring-tag.day {
    background-color: #e8daef;
    color: #8e44ad;
}

.recurring-tag.date {
    background-color: #d1f2eb;
    color: #117a65;
}

.recurring-card-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* Forms */
.recurring-form-group {
    margin-bottom: 1.5rem;
}


.recurring-form-help {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.recurring-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.recurring-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.recurring-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.recurring-btn-remove {
    padding: 0.8rem 1rem;
    background-color: #fadbd8;
    color: #c0392b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Specific inputs width overrides */
.recurring-form-input.short {
    width: 100px;
}

.recurring-form-input.flex {
    flex: 1;
}

/* Custom Interval Specifics */
.recurring-split-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recurring-form-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

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

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

.recurring-summary::-webkit-details-marker {
    display: none;
}

.recurring-duration-form-wrapper {
    margin-bottom: 1rem;
}

.recurring-duration-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

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

.recurring-duration-btn-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

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

.recurring-cancel-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.recurring-save-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;


}

/* Timeline View */
.timeline-header {
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

#timeline-scroll-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.timeline-instances-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    max-width: 60px;
}

.timeline-instance-dot {
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: title;
    width: 32px;
    height: 32px;
    font-size: 14px;
    background-color: var(--dot-color, #ccc);
}

.timeline-instance-dot.small {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.timeline-period-label {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.timeline-empty-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
}

.timeline-period-label.empty {
    color: #999;
}