/* 
 * FR-047, FR-048: Reminder UI Styles
 * Motivational Engine - Reminders Module
 */

/* ========================================
   FR-047: Reminder Prompt Overlay
   ======================================== */

.reminder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reminder-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.reminder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.reminder-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}

.reminder-close:hover {
    color: #1a202c;
}

/* FR-047: Reminder List */
.reminder-list {
    padding: 10px;
}

.reminder-item {
    background: #f7fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
}

.reminder-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.reminder-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.reminder-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reminder-details {
    flex-grow: 1;
}

.reminder-activity-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.reminder-message {
    color: #4a5568;
    margin: 0 0 8px 0;
    font-size: 0.875rem;
}

.reminder-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reminder-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.reminder-type-standard {
    background: #bee3f8;
    color: #2c5282;
}

.reminder-type-recurring {
    background: #c6f6d5;
    color: #22543d;
}

.reminder-type-dependent {
    background: #fed7d7;
    color: #742a2a;
}

.reminder-time {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* FR-047: Reminder Actions */
.reminder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-dismiss,
.btn-view {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dismiss {
    background: #48bb78;
    color: white;
}

.btn-dismiss:hover {
    background: #38a169;
}

.btn-view {
    background: #4299e1;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: #3182ce;
}

/* ========================================
   FR-048: Snooze Dropdown
   ======================================== */

.snooze-dropdown-container {
    position: relative;
    display: inline-block;
}

.snooze-button-group {
    position: relative;
}

.btn-snooze {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: #ecc94b;
    color: #744210;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-snooze:hover {
    background: #d69e2e;
}

.snooze-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 200px;
    overflow: hidden;
}

.snooze-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.snooze-option:hover {
    background: #f7fafc;
}

.snooze-icon {
    font-size: 1.2rem;
}

.snooze-label {
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 500;
}

/* FR-048: Custom Duration */
.snooze-custom {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f7fafc;
}

.snooze-custom-input {
    flex-grow: 1;
    padding: 6px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.875rem;
}

.snooze-custom-btn {
    padding: 6px 12px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.snooze-custom-btn:hover {
    background: #3182ce;
}

/* FR-048: Max Snooze Limit */
.snooze-limit-reached {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.snooze-limit-icon {
    font-size: 1rem;
}

/* ========================================
   Reminder Config UI (FR-035, FR-036, FR-037)
   ======================================== */

.reminder-config-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a202c;
}

.reminder-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.type-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.type-tab:hover {
    color: #2d3748;
}

.type-tab.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.reminder-config {
    display: none;
}

.reminder-config.active {
    display: block;
}

.reminder-form .form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-help {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #718096;
}

/* Day Selector for Recurring */
.day-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-checkbox {
    flex: 1;
    min-width: 60px;
    text-align: center;
}

.day-checkbox input[type="checkbox"] {
    display: none;
}

.day-checkbox span {
    display: block;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
}

.day-checkbox input[type="checkbox"]:checked + span {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.day-checkbox span:hover {
    border-color: #4299e1;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* FR-050: Dependency Info */
.form-info {
    background: #fefcbf;
    border-left: 4px solid #ecc94b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.info-text {
    margin: 0 0 8px 0;
    color: #744210;
    font-size: 0.875rem;
}

.info-list {
    margin: 0;
    padding-left: 20px;
    color: #744210;
    font-size: 0.75rem;
}

.info-list li {
    margin-bottom: 4px;
}

/* Reminder Footer */
.reminder-footer {
    padding: 16px 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.btn-dismiss-all {
    padding: 10px 24px;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dismiss-all:hover {
    background: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .reminder-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .reminder-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .day-selector {
        gap: 6px;
    }
    
    .day-checkbox {
        min-width: 45px;
    }
}
/* FR-047: Additional animations and states */

.reminder-item {
    transition: all 0.3s ease;
}

.reminder-item.dismissing {
    opacity: 0.5;
    pointer-events: none;
}

/* Button states */
.btn-dismiss:hover,
.btn-view:hover,
.btn-dismiss-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-dismiss:active,
.btn-view:active,
.btn-dismiss-all:active {
    transform: translateY(0);
}

/* Loading state */
.btn-dismiss.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
/* NFR-014: High-contrast onboarding button override */
.card--onboarding .btn-secondary {
    background-color: white !important;
    color: #1976D2 !important;
    border: 1px solid #1976D2 !important;
}

