/* Chore Management Styles */

/* Credits Display Styling */
.credits-display {
    background: #ffd700;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    display: inline-flex;
    height: 38px; /* Exact Bootstrap button height */
    white-space: nowrap;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
}

.credits-display i {
    color: #333;
    margin-right: 4px;
}

/* AI Enhance Button Styling */
.btn-ai-enhance {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff9ff3 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-ai-enhance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-ai-enhance:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* AI Suggestions Modal */
#aiSuggestionsModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
}

@media (min-width: 768px) {
    #aiSuggestionsModal .modal-dialog {
        max-width: 800px;
        width: 800px;
    }
}

.suggestion-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    border-color: var(--foliage-green);
    box-shadow: 0 4px 12px rgba(74, 112, 72, 0.15);
}

.suggestion-card .form-check-label {
    width: 100%;
    cursor: pointer;
}

.suggestion-card .badge {
    font-size: 0.75rem;
    margin: 1px;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid var(--mountain-green);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 140px;
    min-height: 140px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(74, 112, 72, 0.2);
    border-color: var(--foliage-green);
}

.stat-card .card-body {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card i {
    color: var(--foliage-green);
    transition: all 0.3s ease;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card p {
    font-size: 0.85rem;
    margin: 0;
}

.stat-card:hover i {
    color: var(--mountain-green);
    transform: scale(1.1);
}

/* Chore Cards */
.chore-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--mountain-green);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.chore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 112, 72, 0.2);
    border-color: var(--foliage-green);
}

.chore-card.completed {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95) 0%, rgba(200, 230, 201, 0.9) 100%);
    border-color: var(--mountain-green);
}

.chore-card.completed .chore-header {
    background: linear-gradient(135deg, var(--mountain-green) 0%, #90EE90 100%);
}

.chore-header {
    background: linear-gradient(135deg, var(--foliage-green) 0%, var(--mountain-green) 100%);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
    border: none;
}

.chore-body {
    padding: 1.5rem;
}

.chore-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.chore-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chore-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.chore-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.chore-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chore-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chore-actions .btn:hover {
    transform: translateY(-2px);
}

/* Category Colors */
.category-cleaning {
    border-left: 4px solid #17a2b8;
}

.category-maintenance {
    border-left: 4px solid #ffc107;
}

.category-cooking {
    border-left: 4px solid #dc3545;
}

.category-laundry {
    border-left: 4px solid #6f42c1;
}

.category-gardening {
    border-left: 4px solid #28a745;
}

.category-pet_care {
    border-left: 4px solid #fd7e14;
}

.category-organizing {
    border-left: 4px solid #20c997;
}

.category-other {
    border-left: 4px solid #6c757d;
}

/* Frequency Icons */
.frequency-daily::before {
    content: "📅 ";
}

.frequency-weekly::before {
    content: "📆 ";
}

.frequency-monthly::before {
    content: "🗓️ ";
}

.frequency-as_needed::before {
    content: "⚡ ";
}

/* Point Values */
.point-value {
    background: linear-gradient(135deg, var(--terracotta) 0%, #ffa500 100%);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Completion Status */
.completion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.completion-status.completed {
    color: var(--mountain-green);
}

.completion-status.completed i {
    color: var(--mountain-green);
}

.completion-status.pending {
    color: var(--terracotta);
}

.completion-status.pending i {
    color: var(--terracotta);
}

/* Filters */
.filter-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--mountain-green);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-card .card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    color: var(--foliage-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--mountain-green);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--foliage-green);
    box-shadow: 0 0 0 0.2rem rgba(74, 112, 72, 0.25);
    background: var(--text-light);
}

/* Modal Styles */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow);
    backdrop-filter: blur(10px);
}

.modal-header {
    background: linear-gradient(135deg, var(--foliage-green) 0%, var(--mountain-green) 100%);
    color: var(--text-light);
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    background: rgba(245, 232, 199, 0.8);
    border-radius: 0 0 15px 15px;
    border: none;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 10;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chore-actions {
        flex-direction: column;
    }

    .chore-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .chore-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .chore-card {
        margin-bottom: 0.75rem;
    }

    .chore-body {
        padding: 1rem;
    }

    .chore-header {
        padding: 0.75rem 1rem;
    }

    .chore-title {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Success/Error States */
.alert-success {
    background: linear-gradient(135deg, var(--mountain-green) 0%, #90EE90 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

/* Button Variants */
.btn-complete {
    background: linear-gradient(135deg, var(--mountain-green) 0%, #90EE90 100%);
    border: none;
    color: var(--text-light);
    font-weight: 600;
}

.btn-complete:hover {
    background: linear-gradient(135deg, #90EE90 0%, var(--mountain-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: var(--text-light);
}

.btn-edit {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border: none;
    color: var(--text-light);
    font-weight: 600;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    color: var(--text-light);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: var(--text-light);
    font-weight: 600;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    color: var(--text-light);
}
