/* SafinAhmedERP - Updated Main Stylesheet */

/* Import modern, professional fonts with Arabic, English, and Kurdish support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Lexend:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Core variables - Updated with the new color palette */
:root {
    /* Primary brand colors - from provided palette */
    --primary-color: #006747; /* Deep green */
    --primary-dark: #004533; /* Deep green, darker stop for gradients */
    --primary-hover: #005538; /* Deep green, hover state */
    --primary-color-rgb: 0, 103, 71; /* Deep green, as r,g,b triplet for rgba() usages */
    --secondary-color: #a7c4bc; /* Mint/sage green */
    --tertiary-color: #e5e5e5; /* Light gray */
    --dark-color: #333333; /* Dark gray */
    --black-color: #1a1a1a; /* Black */
    /* Extended UI colors */
    --background-color: #f9f9f9; /* Light background */
    --card-bg-color: #ffffff; /* White for cards and content areas */
    --text-color: var(--dark-color); /* Main text color */
    --text-light: #6c757d; /* Secondary text color */
    --border-color: #dee2e6; /* Border color for separators */
    /* Status colors */
    --success-color: #2ecc71; /* Green for success messages */
    --warning-color: #f39c12; /* Orange for warnings */
    --error-color: #e74c3c; /* Red for errors */
    --info-color: #3498db; /* Blue for info */
    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    /* Font sizes */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-md: 1.15rem; /* 16px */
    --font-size-lg: 1.25rem; /* 20px */
    --font-size-xl: 1.5rem; /* 24px */
    --font-size-xxl: 2rem; /* 32px */
    /* Border radius */
    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem; /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */
    --border-radius-xl: 1rem; /* 16px */
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.05), 0 10px 10px rgba(0, 0, 0, 0.02);
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    /* RTL Support */
    --direction: ltr;
    --start: left;
    --end: right;
    --text-align-start: left;
    --text-align-end: right;
    /* Font Family - Modern system with Arabic support */
    --font-family: 'Inter', 'Tajawal', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL overrides - will be applied when in Arabic or Kurdish modes */
html[dir="rtl"] {
    --direction: rtl;
    --start: right;
    --end: left;
    --text-align-start: right;
    --text-align-end: left;
}

/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: clamp(13px, 0.35vw + 12px, 16px);
    scroll-behavior: smooth;
}

/* Base body styles */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    direction: var(--direction);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
