/* ==========================================================================
   miboda.adminde - Centralized Base Design System & Craft Paper Styles
   Shared across all service pages, error screens, legal policies, and templates
   ========================================================================== */

/* ─── DESIGN TOKENS ─── */
:root {
    --rose:           #E5989B;
    --rose-dark:      #D67F82;
    --rose-light:     #FFB5A7;
    --blush:          #FFF8F5;
    --gold:           #C6A45C;
    --charcoal:       #2E2225;
    --muted:          #7E6C70;
    --white:          #FFFFFF;
    --card-bg:        #FFFFFF;
    --border:         #E2CFD4;
    --bg-desk:        #F7F2EE;
    --shadow-offset:  4px 8px 0px rgba(229, 152, 155, 0.25);
    --shadow-offset-sm: 2px 4px 0px rgba(229, 152, 155, 0.2);
}

/* ─── GLOBAL RESET & BODY ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

body.craft-body, .service-page-body {
    background-color: var(--bg-desk);
    background-image: linear-gradient(160deg, #F7F2EE 0%, #FFF8F5 60%, #FAF4EF 100%);
    color: var(--charcoal);
    font-family: 'Outfit', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, .font-fredoka, .page-heading {
    font-family: 'Fredoka', 'Playfair Display', serif;
    font-weight: 700;
    color: var(--charcoal);
}

/* ─── PAPER CRAFT CONTAINERS ─── */
.paper-card, .service-card, .error-container, .maintenance-card, .construction-container, .lock-card, .legal-container {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-offset), 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ─── SERVICE & ERROR PAGE LAYOUTS ─── */
.service-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.service-card-content {
    max-width: 540px;
    width: 100%;
    padding: 50px 36px;
    margin: 0 auto;
}

.legal-container-content {
    max-width: 820px;
    width: 100%;
    padding: 50px 40px;
    margin: 0 auto;
    text-align: left;
}

/* ─── ICON STYLED BADGES & HEADERS ─── */
.service-icon-badge {
    width: 72px;
    height: 72px;
    background: #FFF0EC;
    color: var(--rose);
    border: 2px solid var(--rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-offset-sm);
}

.error-code {
    font-family: 'Fredoka', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: var(--rose);
    line-height: 1;
    margin: 0 0 10px;
    text-shadow: 3px 4px 0px var(--rose-dark);
}

/* ─── CARTOON PAPER PILL BUTTONS ─── */
.btn-paper, .btn-home, .btn-submit, .btn-primary-craft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--rose);
    color: #FFFFFF !important;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid var(--rose);
    box-shadow: 2px 4px 0px var(--rose-dark);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-paper:hover, .btn-home:hover, .btn-submit:hover, .btn-primary-craft:hover {
    background-color: #d28487 !important;
    border-color: #d28487 !important;
    transform: translateY(-2px);
    box-shadow: 3px 6px 0px var(--rose-dark);
}

.btn-paper:active, .btn-home:active, .btn-submit:active, .btn-primary-craft:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0px 1px 0px transparent;
}

.btn-outline-craft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    color: var(--rose) !important;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    border: 2px solid var(--rose);
    box-shadow: 2px 3px 0px var(--border);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline-craft:hover {
    background-color: var(--rose) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 3px 5px 0px var(--rose-dark);
}

/* ─── BACK LINKS ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--rose);
}

/* ─── MOBILE TOPBAR & HEADER SPACING (REDUCED 90%) ─── */
@media (max-width: 768px) {
    body,
    body.craft-body,
    .service-page-body {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100dvh !important;
    }

    .dashboard-container,
    .dashboard-layout {
        height: 100% !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        padding-top: max(3px, env(safe-area-inset-top, 3px)) !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
        margin-top: 0 !important;
    }

    .dashboard-topbar {
        margin-top: 3px !important;
        margin-bottom: 14px !important;
        top: max(3px, env(safe-area-inset-top, 3px)) !important;
    }
}
