@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Jost:wght@400;500;600;700&display=swap');

:root {
  --arsha-blue: #37517e;
  --arsha-deep: #2b4165;
  --arsha-cyan: #47b2e4;
  --ink: #444;
  --muted: #6c757d;
  --paper: #fff;
  --soft: #f3f5fa;
}

html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
a { text-decoration: none; }
.arsha-navbar { min-height: 76px; background: var(--arsha-blue); box-shadow: 0 2px 14px #25385822; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: #fff !important; font-family: "Jost", sans-serif; font-size: 27px; font-weight: 600; letter-spacing: 1px; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 2px solid #47b2e4; border-radius: 50%; color: #fff; font: 600 18px Georgia, serif; letter-spacing: 0; }
.brand-amp { color: #47b2e4; }
.navbar-nav .nav-link { padding: .65rem .5rem !important; color: #fff !important; font-size: 14px; font-weight: 500; transition: color .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: #47b2e4 !important; }
.nav-cta { padding: .5rem 1.15rem; border-radius: 24px; font-size: 14px; }
.nav-cta:hover { border-color: var(--arsha-cyan); background: var(--arsha-cyan); }
.nav-search-form { display: flex; align-items: center; gap: 8px; }
.nav-search-form .form-control { width: 170px; min-height: 38px; border-color: #ffffff80; border-radius: 24px; font-size: 14px; }
.nav-search-form .btn { padding: .5rem 1rem; border-radius: 24px; font-size: 14px; white-space: nowrap; }
.nav-auth-form { margin: 0; }
.hero-section { overflow: hidden; padding: 68px 0 76px; background: var(--arsha-blue); color: #fff; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker, .section-kicker { margin-bottom: 12px; color: var(--arsha-cyan); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.hero-section h1 { margin-bottom: 22px; font: 700 clamp(42px, 5vw, 58px)/1.12 "Jost", sans-serif; letter-spacing: -.5px; }
.hero-section h1 span { color: #a9d8eb; }
.hero-text { max-width: 470px; margin-bottom: 28px; color: #e2e8f0; font-size: 17px; line-height: 1.75; }
.btn-primary { --bs-btn-bg: var(--arsha-cyan); --bs-btn-border-color: var(--arsha-cyan); --bs-btn-hover-bg: #329dcc; --bs-btn-hover-border-color: #329dcc; --bs-btn-active-bg: #329dcc; --bs-btn-active-border-color: #329dcc; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; border-radius: 24px; font-weight: 600; }
.hero-button { padding: 12px 25px; border: 0; border-radius: 24px; color: var(--arsha-blue); font-weight: 700; }
.hero-button:hover { background: #e9f4f8; color: var(--arsha-blue); }
.hero-secondary-link { display: inline-block; margin-left: 22px; color: #fff; font-size: 14px; font-weight: 500; }
.hero-secondary-link:hover { color: #a9d8eb; }
.hero-art { position: relative; display: grid; min-height: 360px; place-items: center; }
.hero-art-circle { position: absolute; width: min(335px, 75vw); aspect-ratio: 1; border-radius: 50%; background: #ffffff10; box-shadow: 0 0 0 26px #ffffff08, 0 0 0 54px #ffffff05; }
.hero-food-photo { position: relative; z-index: 1; width: min(290px, 72vw); aspect-ratio: 1; border: 10px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 16px 45px #182b4930; transform: rotate(-5deg); }
.floating-note { position: absolute; z-index: 2; right: 3%; bottom: 56px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 6px; background: #fff; box-shadow: 0 9px 28px #172a471c; color: var(--arsha-blue); font: italic 15px Georgia, serif; transform: rotate(-4deg); }
.floating-note i { color: #e17878; font-size: 16px; }
.floating-tag { position: absolute; z-index: 2; top: 42px; left: 3%; padding: 9px 12px; border: 1px solid #ffffff36; border-radius: 20px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.floating-tag i { margin-right: 5px; color: var(--arsha-cyan); }
.hero-leaf { position: absolute; color: #91c8d7; opacity: .8; }
.hero-leaf-one { top: 38px; right: 12%; font-size: 54px; transform: rotate(20deg); }
.hero-leaf-two { bottom: 31px; left: 9%; font-size: 40px; transform: rotate(190deg); }
.content-section { padding: 55px 0 80px; background: #fff; }
.import-card { margin-bottom: 66px; padding: 24px 28px; border-radius: 8px; background: var(--soft); }
.import-copy { display: flex; align-items: center; gap: 15px; }
.import-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: #dceaf5; color: var(--arsha-blue); font-size: 23px; }
.import-copy h2 { margin: 0 0 4px; color: var(--arsha-blue); font: 600 18px "Jost", sans-serif; }
.import-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.import-form { display: flex; gap: 10px; }
.import-form .form-control { min-width: 0; min-height: 45px; border-color: #d9e0ea; border-radius: 5px; font-size: 14px; }
.import-form .btn { flex: 0 0 auto; padding: 0 19px; }
.alert { border-radius: 6px; }
.alert p { margin-bottom: .35rem; }
.alert p:last-child { margin-bottom: 0; }
.editor-card { margin: -20px 0 66px; padding: 30px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; box-shadow: 0 5px 25px #37517e0c; }
.login-card { max-width: 720px; }
.login-form { max-width: 480px; }
.user-management-note { color: var(--muted); font-size: 14px; }
.user-list-title { margin: 28px 0 10px; color: var(--arsha-blue); font: 600 20px "Jost", sans-serif; }
.user-list { margin: 0; padding: 0; list-style: none; }
.user-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0f4; }
.user-role { padding: 4px 9px; border-radius: 20px; background: #eaf5fa; color: var(--arsha-blue); font-size: 11px; font-weight: 600; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.section-kicker { margin-bottom: 7px; color: var(--arsha-cyan); font-size: 11px; }
.section-heading h2 { margin: 0; color: var(--arsha-blue); font: 600 31px/1.2 "Jost", sans-serif; }
.section-link { color: var(--arsha-blue); font-size: 14px; font-weight: 600; }
.section-link:hover { color: #47b2e4; }
.editor-heading { margin-bottom: 26px; }
.recipe-form .form-label { margin-bottom: 6px; color: #35445c; font-size: 14px; font-weight: 600; }
.recipe-form .form-control { border-color: #dce1e8; border-radius: 5px; font-size: 14px; }
.recipe-form .form-control:focus, .import-form .form-control:focus { border-color: #8bc6dc; box-shadow: 0 0 0 .2rem #47b2e41a; }
.recipe-form .form-text { font-size: 12px; }
.recipe-image-preview { margin: -4px 0 16px; overflow: hidden; border: 1px solid #e6eaf0; border-radius: 8px; background: #f7f9fb; }
.recipe-image-preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.imported-image-note { margin: -4px 0 15px; color: #64758c; font-size: 13px; }
.required-mark { color: #ca6470; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.collection-section { padding-top: 1px; }
.count-badge { display: inline-grid; min-width: 25px; height: 25px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 50%; background: #e5f4fa; color: var(--arsha-blue); font: 600 12px "DM Sans", sans-serif; vertical-align: 5px; }
.empty-state { padding: 56px 20px; border: 1px dashed #cfd7e3; border-radius: 8px; background: #fafbfd; text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 17px; place-items: center; border-radius: 50%; background: #e5f4fa; color: var(--arsha-blue); font-size: 25px; }
.empty-state h3 { margin-bottom: 8px; color: var(--arsha-blue); font: 600 24px "Jost", sans-serif; }
.empty-state p { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.recipe-card { overflow: hidden; border: 1px solid #e8ebf0; border-radius: 8px; box-shadow: 0 3px 15px #37517e0c; transition: transform .2s, box-shadow .2s; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #37517e1a; }
.card-art-link { display: block; }
.card-art { position: relative; display: grid; min-height: 176px; place-items: center; overflow: hidden; background: #e8ebde; }
.card-art-1 { background: #eee5d9; }
.card-art-2 { background: #e8e6d9; }
.card-art-3 { background: #eaddd4; }
.card-art::before, .card-art::after { position: absolute; border: 1px solid #ffffff8a; border-radius: 50%; content: ""; }
.card-art::before { width: 132px; height: 132px; }
.card-art::after { width: 98px; height: 98px; border-color: #ffffff82; }
.card-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.card-photo ~ .card-number, .card-photo ~ .card-category { z-index: 1; padding: 4px 7px; border-radius: 3px; background: #fffefaE8; }
.card-number { position: absolute; top: 14px; left: 15px; color: #66745e; font-size: 10px; letter-spacing: 1px; }
.card-flower { z-index: 1; color: #9c7658; font-size: 48px; }
.card-art-1 .card-flower { color: #9f6b55; }
.card-art-2 .card-flower { color: #728065; }
.card-art-3 .card-flower { color: #a96950; }
.card-category { position: absolute; right: 12px; bottom: 11px; color: #6f766a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.recipe-card .card-body { display: flex; flex-direction: column; padding: 20px; }
.recipe-card .card-title { margin-bottom: 9px; color: var(--arsha-blue); font: 600 20px "Jost", sans-serif; }
.recipe-card .card-text { min-height: 42px; margin-bottom: 17px; color: #6c757d; font-size: 13px; line-height: 1.65; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 15px; }
.recipe-tag { padding: 4px 9px; border-radius: 20px; background: #eaf5fa; color: var(--arsha-blue); font-size: 10px; font-weight: 600; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: -4px 0 15px; color: #64758c; font-size: 11px; }
.recipe-facts i { color: #47b2e4; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0f4; color: #7d8794; font-size: 11px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-meta a:not(.btn) { color: var(--arsha-blue); font-weight: 600; white-space: nowrap; }
.card-meta a:not(.btn):hover { color: #47b2e4; }
.card-actions form { margin: 0; }
.recipe-view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.recipe-view-description { margin-bottom: 20px; color: var(--muted); line-height: 1.7; }
.recipe-view-content h3 { margin-bottom: 12px; color: var(--arsha-blue); font: 600 20px "Jost", sans-serif; }
.recipe-view-content ul, .recipe-view-content ol { padding-left: 1.4rem; line-height: 1.8; }
.recipe-view-content li { padding-left: 4px; margin-bottom: 5px; }
.ingredient-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ingredient-heading h3 { margin-bottom: 0; }
.ingredient-heading .btn { white-space: nowrap; }
.conversion-note { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.recipe-view-source { margin: 20px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.recipe-view-source a { color: var(--arsha-blue); }
.delete-recipe-button { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; padding: 0 .5rem; border: 1px solid #b94a48; border-radius: 24px; background: transparent; color: #b94a48; font: inherit; font-weight: 600; white-space: nowrap; }
.delete-recipe-button:hover { color: #8f302e; }
.site-footer { padding: 24px 0; background: var(--arsha-blue); }
.site-footer .brand { font-size: 20px; }
.site-footer .brand-mark { width: 30px; height: 30px; font-size: 15px; }
.site-footer > .container > span { color: #dbe3ee; font-size: 13px; }

@media (max-width: 991.98px) {
  .hero-section { padding: 54px 0 62px; }
  .hero-art { min-height: 310px; }
  .import-card { margin-bottom: 54px; }
  .navbar-nav { padding: 10px 0 15px; align-items: stretch !important; }
  .nav-cta { margin-top: 6px; }
  .nav-auth-form { margin-top: 6px; }
  .nav-search-form { width: 100%; margin-top: 6px; }
  .nav-search-form .form-control { width: auto; min-width: 0; flex: 1; }
}
@media (max-width: 575.98px) {
  .brand { font-size: 22px; }
  .brand-mark { width: 31px; height: 31px; font-size: 16px; }
  .hero-section { padding: 43px 0 48px; }
  .hero-section h1 { font-size: 43px; }
  .hero-text { font-size: 15px; }
  .hero-secondary-link { display: block; margin: 17px 0 0; }
  .hero-art { min-height: 260px; margin-top: -6px; }
  .hero-food-photo { width: 210px; }
  .hero-art-circle { width: 235px; }
  .floating-note { right: 1%; bottom: 32px; }
  .floating-tag { top: 20px; left: 0; }
  .hero-leaf-one { right: 4%; }
  .import-card { padding: 20px 16px; }
  .import-form { flex-direction: column; }
  .import-form .btn { min-height: 45px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 26px; }
  .section-link { font-size: 12px; white-space: nowrap; }
  .editor-card { padding: 22px 17px; }
  .editor-heading { align-items: flex-start; }
  .card-art { min-height: 155px; }
  .site-footer .brand { font-size: 18px; }
}

@media print {
  body > nav,
  body > footer,
  .content-section > .container > :not(.recipe-view-card) {
    display: none !important;
  }
  .content-section { padding: 0; }
  .content-section > .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .recipe-view-card {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .recipe-view-actions,
  #convert-ingredients,
  .conversion-note {
    display: none;
  }
}
