/* Habit Tracker Styles */

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 80px;
}

.tool-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tool-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.tool-details h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tool-details p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.tool-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Info Section */
.info-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Usage Section */
.usage-section {
    padding: 6rem 0;
    background: white;
}

.steps-flow {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin: auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-item:last-child {
    margin-bottom: 2rem;
}

.step-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.step-item:hover .step-circle {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.step-icon {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.step-content {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 20px 20px 0 0;
}

.step-item:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Step Options */
.step-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-tag {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.option-tag:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px);
}

/* Step Details */
.step-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-item span {
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
}

/* Step Features */
.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.feature-badge i {
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #10b981;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Step Arrows */
.step-arrow {
    position: absolute;
    left: 60px;
    bottom: -2rem;
    transform: translateX(-50%);
    z-index: 1;
}

.step-arrow i {
    font-size: 2rem;
    color: #10b981;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.step-item:last-child .step-arrow {
    display: none;
}

/* Quick Tips */
.quick-tips {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #6b7280;
}

.tip-item i {
    color: #10b981;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.tool-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.add-habit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.color-picker {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.add-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.quick-actions {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.quick-actions h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.quick-action-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quick-action-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Tracker Main */
.tracker-main {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

.tracker-controls {
    padding: 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.view-controls {
    display: flex;
    gap: 1rem;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.view-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Tracker Views */
.tracker-view {
    display: none;
    padding: 2rem;
}

.tracker-view.active {
    display: block;
}

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

.view-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-selector,
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-nav-btn,
.month-nav-btn {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-nav-btn:hover,
.month-nav-btn:hover {
    background: #10b981;
    color: white;
}

.habits-container {
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

.create-first-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-first-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Use Cases Section */
.use-cases-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.use-case-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1rem;
}

.use-case-category ul {
    list-style: none;
}

.use-case-category li {
    padding: 0.5rem 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.use-case-category li:before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    background: white;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.work-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    position: relative;
}

.work-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
}

.work-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.work-card p {
    color: #6b7280;
    line-height: 1.6;
}

.habit-science {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.science-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.science-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.science-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.science-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
    }

    .tracker-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-item {
        gap: 1.5rem;
        flex-direction: column;
    }

    .step-circle {
        width: 100px;
        height: 100px;
    }

    .step-number {
        top: 12px;
    }

    .step-icon {
        font-size: 2rem;
        margin-top: 0.75rem;
    }

    .step-content {
        padding: 2rem;
    }

    .step-content h3 {
        font-size: 1.5rem;
    }

    .step-arrow {
        left: 50px;
    }

    .habits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-info {
        flex-direction: column;
    }

    .steps-flow {
        padding: 0 1rem;
    }

    .tool-details h1 {
        font-size: 2rem;
    }

    .view-controls,
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .view-btn,
    .filter-select {
        width: 100%;
    }

    .step-item {
        gap: 1rem;
    }

    .step-circle {
        width: 80px;
        height: 80px;
    }

    .step-number {
        font-size: 1.2rem;
        top: 10px;
    }

    .step-icon {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.3rem;
    }

    .step-content p {
        font-size: 1rem;
    }

    .step-arrow {
        left: 40px;
        bottom: -1.5rem;
    }

    .step-arrow i {
        font-size: 1.5rem;
    }
}


/* Habit Card Styles */
.habit-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.habit-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.habit-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.habit-category {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.habit-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.habit-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.habit-stats .stat i {
    color: #10b981;
    font-size: 1rem;
}

.habit-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.habit-check-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.habit-check-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.habit-check-btn.completed {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.habit-delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.habit-card:hover .habit-delete-btn {
    opacity: 1;
}

.habit-delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Calendar Styles */
.calendar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
}

.calendar-day-header {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    padding: 1px;
}

.calendar-cell {
    background: white;
    padding: 1rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-cell:hover {
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}

.calendar-cell.empty {
    background: #f3f4f6;
    cursor: default;
}

.calendar-day {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.calendar-completion {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Stats Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.stat-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.stat-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Error Message */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.habit-card {
    animation: slideIn 0.3s ease-out;
}

/* Additional responsive adjustments */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 2rem 0;
    }

    .tool-details h1 {
        font-size: 2rem;
    }

    .tracker-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-controls,
    .filter-controls {
        width: 100%;
    }

    .view-btn,
    .filter-select {
        flex: 1;
    }

    .habits-grid {
        grid-template-columns: 1fr;
    }

    .stat-items {
        grid-template-columns: 1fr;
    }

    .calendar-cell {
        min-height: 60px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tool-info {
        flex-direction: column;
        text-align: center;
    }

    .tool-icon {
        margin: 0 auto;
    }

    .tool-details h1 {
        font-size: 1.5rem;
    }

    .tool-meta {
        justify-content: center;
    }

    .view-header {
        flex-direction: column;
    }

    .date-selector {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-day-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .calendar-cell {
        min-height: 50px;
        padding: 0.5rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .calendar-completion {
        font-size: 0.7rem;
    }
}


/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.faq-question span {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.05rem;
    text-align: left;
}

.faq-question i {
    color: #10b981;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem;
    color: #6b7280;
    line-height: 1.8;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

/* Modal/Dialog Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2001;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #1f2937;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.modal-body {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.modal-btn-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.modal-btn-secondary:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question span {
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
    }

    .faq-question span {
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
}