/* =========================================
   ModalRasa - Global Stylesheet
   ========================================= */

/* --- Base & Typography --- */
body { font-family: 'Poppins', 'Inter', sans-serif; background-color: #f8fafc; color: #334155; }
.text-brand { color: #0f172a !important; }
.bg-brand { background-color: #0f172a !important; }
.text-mint { color: #10b981 !important; }
.bg-mint { background-color: #10b981 !important; }

/* --- Buttons --- */
.btn-mint { background-color: #10b981; color: white; border: none; transition: all 0.3s; }
.btn-mint:hover { background-color: #059669; color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.btn-brand { background: #0f172a; color: white; transition: all 0.2s; border: none; }
.btn-brand:hover { background: #1e293b; color: white; }

/* --- Navbar (Frontend) --- */
.navbar { background-color: #ffffff; padding: 18px 0; border-bottom: 1px solid #f1f5f9; transition: all 0.3s;}
.navbar-brand { font-weight: 800; color: #0f172a !important; font-size: 1.6rem; letter-spacing: -0.5px;}
.nav-link { color: #475569 !important; font-weight: 500; padding: 8px 16px !important;}
.nav-link:hover { color: #0f172a !important; }

/* --- Navbar (Admin) --- */
.navbar-top { background: #ffffff; border-bottom: 1px solid #E2E8F0; padding: 12px 0; }
.badge-console { background: #e0e7ff; color: #4338ca; font-size: 0.7rem; letter-spacing: 0.5px; padding: 4px 8px; border-radius: 6px; }

/* --- Hero Section (Index) --- */
.hero-section { 
    background: linear-gradient(135deg, #020617 0%, #1d4ed8 100%); 
    color: white; 
    padding: 120px 0 100px 0; 
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; }

/* --- Hero Blog --- */
.hero-blog { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 60px 0; }

/* --- Cards --- */
.step-card {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 25px 20px;
    width: 240px; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-5px); }

.card-recipe { transition: all 0.3s ease; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; background: #fff;}
.card-recipe:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: #cbd5e1;}
.recipe-img { width: 100%; height: 220px; object-fit: cover; background-color: #f1f5f9; }

.card-custom { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }

/* --- Blog Cards --- */
.blog-card { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; background: white;}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.blog-img-wrapper { height: 200px; overflow: hidden; background: #e2e8f0;}
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.05); }
.blog-badge { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.9); color: #0f172a; font-weight: 600; font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(5px);}

.cat-link { text-decoration: none; color: #475569; font-weight: 500; display: block; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; }
.cat-link:hover, .cat-link.active { background: #e0e7ff; color: #4338ca; }

/* --- Forms & Search --- */
.search-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 50px; padding: 5px 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.search-box input { border: none; box-shadow: none; font-size: 0.95rem; }
.search-box input:focus { outline: none; }

.form-control, .form-select { border-radius: 10px; padding: 12px 15px; border-color: #e2e8f0; }
.form-control:focus, .form-select:focus { border-color: #10b981; box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25); }

/* --- Badges & Pills --- */
.hpp-badge { position: absolute; top: 15px; left: 15px; background: rgba(255, 255, 255, 0.95); color: #0f172a; font-weight: 700; padding: 6px 14px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-size: 0.85rem;}
.badge-premium { background-color: #1e293b; color: #fff; font-size: 0.75rem; letter-spacing: 0.5px;}
.badge-free { background-color: #10b981; color: #fff; font-size: 0.75rem; letter-spacing: 0.5px;}

.scrollable-pills { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 5px; }
.scrollable-pills::-webkit-scrollbar { display: none; }

/* --- Admin Dashboard Specifics --- */
.metric-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.2s;}
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px rgba(0,0,0,0.03); }
.metric-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.bg-icon-blue { background: #dbeafe; color: #2563eb; }
.bg-icon-mint { background: #d1fae5; color: #10b981; }
.bg-icon-yellow { background: #fef08a; color: #ca8a04; }
.bg-icon-trend { background: #f3e8ff; color: #9333ea; }

.table-custom { margin-bottom: 0; }
.table-custom thead { background-color: #F8FAFC; }
.table-custom th { color: #64748b; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; padding: 12px 24px; border-bottom: 1px solid #e2e8f0; letter-spacing: 0.5px;}
.table-custom td { padding: 16px 24px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem;}
.table-custom tbody tr { transition: background 0.2s; }
.table-custom tbody tr:hover { background-color: #f8fafc; }

/* --- Utilities --- */
.shadow-custom { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.footer { background-color: #ffffff; border-top: 1px solid #f1f5f9; padding: 40px 0; margin-top: 80px; }

/* --- Admin Dashboard specific --- */
.login-card { background: white; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); padding: 40px; width: 100%; max-width: 400px; text-align: center; margin: auto; margin-top: 10vh;}
.thumb-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #e2e8f0; }
.cat-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.cat-kopi { background: #e0f2fe; color: #0284c7; }
.cat-non { background: #fce7f3; color: #db2777; }
.cat-makan { background: #ffedd5; color: #ea580c; }
.cat-default { background: #f1f5f9; color: #475569; }
.type-free { background: #d1fae5; color: #059669; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;}
.type-premium { background: #fef3c7; color: #d97706; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;}
.action-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: none; margin-right: 4px; transition: all 0.2s;}
.btn-view { background: #eff6ff; color: #3b82f6; } .btn-view:hover { background: #dbeafe; }
.btn-toggle { background: #f1f5f9; color: #475569; } .btn-toggle:hover { background: #e2e8f0; }
.btn-del { background: #fef2f2; color: #ef4444; } .btn-del:hover { background: #fee2e2; }
.search-input { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 15px; font-size: 0.85rem; min-width: 250px;}
.filter-select { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 15px; font-size: 0.85rem;}

/* --- Create Recipe Specific --- */
.upload-box { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc;}
.upload-box:hover { border-color: #10b981; background: #ecfdf5;}
#imagePreview { max-height: 200px; border-radius: 10px; margin-top: 15px; display: none;}
.ing-row { background: #fff; padding: 15px; border-radius: 10px; border: 1px solid #e2e8f0; margin-bottom: 10px;}
.btn-remove-ing { color: #ef4444; cursor: pointer; }

/* --- Summary Specific --- */
.summary-card { background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); padding: 25px; border: 1px solid #f1f5f9;}
.price-display { font-size: 2.5rem; font-weight: 800; color: #0f172a; letter-spacing: -1px;}
.fc-badge { background: #d1fae5; color: #059669; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;}
.progress-stacked { display: flex; height: 12px; overflow: hidden; border-radius: 10px; }
.progress-cogs { background-color: #ef4444; }
.progress-labor { background-color: #f59e0b; }
.progress-ops { background-color: #3b82f6; }
.progress-marketing { background-color: #8b5cf6; }
.progress-profit { background-color: #10b981; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* --- Article Specific --- */
.article-container { max-width: 800px; margin: 0 auto; background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); padding: 40px; margin-top: 40px;}
.article-title { font-weight: 800; color: #0f172a; line-height: 1.3; font-size: 2.5rem; }
.article-meta { color: #64748b; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; margin-bottom: 30px;}
.article-content { font-family: 'Merriweather', serif; font-size: 1.1rem; line-height: 1.8; color: #334155; }
.article-content h2, .article-content h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #0f172a; margin-top: 40px; margin-bottom: 20px;}
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }
.featured-img-hero { width: 100%; max-height: 450px; object-fit: cover; border-radius: 16px; margin-bottom: 30px;}
.sidebar-title { font-weight: 700; font-size: 1.1rem; border-bottom: 2px solid #0f172a; padding-bottom: 10px; margin-bottom: 20px; display: inline-block;}
.latest-card { border: none; background: transparent; transition: transform 0.2s;}
.latest-card:hover { transform: translateX(5px); }
.latest-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px;}


/* --- Panduan Specific --- */
.guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
@media (max-width: 768px) {
    .guide-card { padding: 30px 20px; }
}
.content-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #e2e8f0;
}
.content-block.border-primary { border-top-color: #3b82f6 !important; }
.content-block.border-warning { border-top-color: #f59e0b !important; }
.content-block.border-secondary { border-top-color: #64748b !important; }

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.icon-blue { background: #eff6ff; color: #3b82f6; }
.icon-yellow { background: #fffbeb; color: #f59e0b; }


/* --- Progress Bar (Calculator & Summary & Create Recipe) --- */
.step-container { display: flex; justify-content: center; align-items: center; gap: 30px; position: relative; }
.step-container::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 70%; height: 2px; background: #e2e8f0; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; background: #f8fafc; padding: 0 10px; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 5px; font-size: 0.9rem; transition: all 0.3s; }
.step-text { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.step.active .step-circle { background: #10b981; color: white; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
.step.active .step-text { color: #10b981; font-weight: 700; }
.step.done .step-circle { background: #0f172a; color: white; }
.step.done .step-text { color: #0f172a; }
.hover-danger:hover { color: #ef4444 !important; }

/* --- Additional Missing Classes --- */
.recipe-header { background: #ffffff; border-radius: 12px 12px 0 0; }
.list-group-item { border-color: #f1f5f9; padding: 15px 20px; transition: background 0.2s; }
.list-group-item:hover { background-color: #f8fafc; }
.input-group-text { background: #f8fafc; color: #64748b; font-weight: 500; font-size: 0.85rem; }

/* --- Dashboard Adjustments --- */
.data-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; }
.data-header { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}

/* --- Multi-step form --- */
.step-section { display: none; }
.step-section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
