/* =============================================
   MEAT APP — GLOBAL STYLESHEET
   Internal CSS handles page-specific styles.
   This file: only truly shared/global stuff.
============================================= */

/* ── Body ── */
body {
    background-color: #f3f3f3;
    font-family: 'Segoe UI', sans-serif;
}

/* ── App Wrapper ── */
.app-wrapper {
    min-height: 100vh;
}

/* ── Mobile Frame ── */
.mobile-frame {
    width: 375px;
    background: #ffffff;
    border-radius: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .mobile-frame { width: 420px; }
}

/* ── LOGIN PAGE ── */
.top-section {
    background-color: #101827;
    padding: 50px 20px 70px;
    position: relative;
}

.logo-box {
    width: 80px; height: 80px;
    background: #ffffff;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: auto;
}

.login-section {
    background: #eeeeee;
    padding: 40px 25px;
    border-top-right-radius: 60px;
    margin-top: -40px;
}

.login-title  { color: #f28c6b; font-weight: 700; }
.subtitle     { color: #777; font-size: 14px; margin-bottom: 25px; }

.login-btn {
    background-color: #2e3a59;
    border-radius: 10px;
    height: 45px;
    font-weight: 600;
}
.login-btn:hover { background-color: #1f2a44; }

/* ── GLOBAL SECTION HEADER (peach bar on each page) ── */
.section-header {
    background-color: #f4a481;
    color: #000;
    padding: 10px !important;
    font-size: 20px !important;
}

/* ── GLOBAL BUTTONS ── */
.btn-dark-blue {
    background-color: #2e3a59;
    color: #fff;
    border-radius: 10px;
    height: 40px;
}
.btn-dark-blue:hover {
    background-color: #fff;
    color: #1f2a44;
    border: 1px solid #1f2a44;
}

.btn-peach {
    background-color: #f4a481;
    color: #fff;
    border-radius: 10px;
    height: 40px;
}
.btn-peach:hover { background-color: #e48f6c; }

/* ── SHARED INPUTS ── */
.small-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
}

.custom-input {
    border-radius: 10px;
    height: 40px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}

/* ── CARD (shared base) ── */
.card-custom {
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ── SIDEBAR ── */
.sidebar {
    position: absolute;
    top: 0; left: -280px;
    width: 280px; height: 100%;
    background: #101827;
    z-index: 1100;
    transition: all 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    padding: 25px;
}
.sidebar.active { left: 0; }

.sidebar-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1050;
}
.sidebar-overlay.active { display: block; }

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1050;
}
.overlay.show { display: block; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.sidebar-brand { color: #f28c6b; font-size: 20px; font-weight: 700; }
.close-sidebar  { color: #fff; font-size: 24px; cursor: pointer; }

.sidebar-menu { list-style: none; padding: 0; }
.sidebar-menu li { margin-bottom: 15px; }
.sidebar-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: flex; align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    transition: 0.2s;
}
.sidebar-menu a:hover { background: rgba(242,140,107,0.2); color: #f28c6b; }
.sidebar-menu a.active { background: #f28c6b; color: #fff; }

/* ── TOAST CONTAINER ── */
.mobile-frame #toast-container {
    position: absolute !important;
    top: 80px !important;
    right: 15px !important;
    left: auto !important;
    transform: none !important;
    width: 270px !important;
    max-width: 80% !important;
    z-index: 999999 !important;
}

.toast {
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    margin-bottom: 8px !important;
}

/* ── GLOBAL LOADER ── */
#global-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.3s linear infinite;
}

@keyframes spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}