.account-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
}

h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-clear {
    font-size: 0.8rem;
    font-weight: normal;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear:hover {
    background-color: #c82333;
}

.recipe-card-mini {
    position: relative;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    height: 100%;
}

.recipe-card-mini-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.recipe-text-content {
    order: -1;
    /* Name on top */
    width: 100%;
}

.recipe-text-content h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.recipe-text-content p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

.recipe-publish-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.recipe-thumb-mini {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-card i {
    font-size: 1.5rem;
    color: #6c757d;
}

.author-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.recipe-status-dropdown {
    position: relative;
    display: inline-block;
}

.status-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.status-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.status-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.status-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.recipe-status-dropdown:hover .status-dropdown-content {
    display: block;
}

/* Featured Limit Modal Styles */
.featured-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.featured-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.featured-selection-item:hover {
    background-color: #f5f5f5;
}

.featured-selection-item.selected {
    border-color: #ff6b6b;
    background-color: #fff0f0;
}

.featured-selection-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.featured-selection-item span {
    font-weight: 500;
    flex-grow: 1;
}

.featured-selection-item .select-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.featured-selection-item .select-btn:hover {
    background-color: #ff5252;
}

.recipe-thumb-mini {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
}

.recipe-card-featured {
    padding: 1.5rem;
    /* 1.5x of 1rem */
    font-size: 1.2rem;
    /* Larger font */
}

.recipe-card-featured .recipe-thumb-mini {
    width: 60px;
    /* 1.5x of 40px */
    height: 60px;
}

/* User Profile Header Styles */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar-large {
    font-size: 4rem;
    color: var(--primary-color);
}

.user-info-large h3 {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.user-info-large h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

/* Profile Tabs Styling (Copied from profile.css) */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0px;
    overflow-x: auto;
    /* Handle overflow on small screens */
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
}

.tab-btn:hover {
    color: var(--primary-color, #2c3e50);
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--primary-color, #2c3e50);
    border-bottom: 3px solid var(--primary-color, #2c3e50);
    background-color: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recipe Card Compact (Desktop) */
.recipe-card-compact {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.compact-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    cursor: pointer;
}

.compact-content {
    flex-grow: 1;
    cursor: pointer;
}

.compact-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.compact-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
}

.recipe-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-card-compact:hover .recipe-actions {
    opacity: 1;
}

@media (max-width: 768px) {
    .recipe-actions {
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 10px;
        justify-content: flex-start;
        padding: 0;
        background: none;
        box-shadow: none;
        width: 100%;
    }
}

.edit-recipe-btn {
    background-color: var(--primary-color) !important;
    /* Override inline styles if any */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.edit-recipe-btn:hover {
    background-color: var(--secondary-color) !important;
}

.delete-recipe-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.delete-recipe-btn:hover {
    background-color: #c0392b;
}

/* Mobile Adjustments for Account Page */
@media (max-width: 768px) {
    .recipe-card-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .compact-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .compact-content {
        width: 100%;
        padding: 0 0.5rem 0.5rem 0.5rem;
    }

    .remove-recipe-btn {
        top: 5px;
        right: 5px;
        background: rgba(255, 255, 255, 0.8) !important;
        color: #ef4444 !important;
    }

    .meal-plan-summary {
        padding: 0.5rem;
    }

    .meal-plan-grid {
        grid-template-columns: 1fr !important;
    }
}