/* =====================================================
 * 01-base.css — Variables, Reset, Base Layout
 * ===================================================== */

@font-face {
    font-family: 'RTA';
    src: url('../assets/rta.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'RTA', Tahoma, sans-serif;
    border-radius: 0 !important;
}

/* Global Font Flattening (Exclude Icons) */
*:not(i):not([class*="fa-"]) {
    font-weight: 500 !important;
    text-shadow: none !important;
}

:root {
    /* Brand Visual Identity */
    --primary: #8e71f0;
    --primary-light: #a591f4;
    --primary-dark: #7756ec;
    --accent: #eace67;
    --accent-dark: #d6b637;

    /* UI Colors */
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-muted: #868e96;
    --border: #dee2e6;

    /* Flat Design Settings */
    --margin-main: 24px;
    --spacing-card: 24px;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --btn-height: 40px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: none;
    --shadow-lg: none;
}

body {
    background: var(--bg-main);
    color: var(--text-dark);
    direction: rtl;
    overflow: hidden;
    height: 100vh;
}

/* Hide scrollbars globally */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* View switching */
.app-view { display: none; width: 100%; flex: 1; min-width: 0; }
.app-view.active-view { display: flex; flex-direction: column; align-items: stretch; }
.hidden { display: none !important; }

/* Global Container */
.orders-container { 
    width: 100%; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch;
    min-width: 0; 
}
.orders-container > *:first-child { margin-top: 0 !important; }

/* Shell Layout */
.orders-shell {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    gap: 0;
    padding: 0;
    background: #f1f5f9;
}

.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0;
    min-width: 0;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: var(--bg-main);
}

.content {
    flex: 1;
    background: #ffffff;
    padding: var(--margin-main);
    overflow-y: auto;
    min-width: 0;
}

.orders-container { width: 100%; }
.orders-container > *:first-child { margin-top: 0 !important; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes softFadeIn {
    0% { transform: scale(0.96); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-in { animation: softFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
