/* 
  Ace10X - Main Stylesheet 
  Core Variables, Resets, and Utilities
*/

:root {
    /* Primary Brand Colors */
    --primary-blue: #1565C0;
    --hero-blue: #0D5EC7;
    --deep-blue: #1F3DBF;
    --accent-purple: #A95BFF;
    --accent-cyan: #53D7F5;

    /* Neutral Colors */
    --white: #FFFFFF;
    --page-bg: #F6F8FC;
    --border-color: #D9E3F0;
    --divider-color: #EEF2F7;
    --primary-text: #1E293B;
    --secondary-text: #6B7280;

    /* Status Colors */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #1565C0;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #0D5EC7 0%, #1565C0 40%, #1F3DBF 75%, #4A32E0 100%);

    /* Shadows */
    --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-dropdown: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.18);
    
    /* Global Settings */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Sidebar width */
    --sidebar-width: 260px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--page-bg);
    color: var(--primary-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--deep-blue);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-text); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }
.text-sm { font-size: 0.8125rem; }
.text-white { color: var(--white) !important; }

.bg-white { background-color: var(--white); }
.bg-page { background-color: var(--page-bg); }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: 700; }
.font-weight-medium { font-weight: 500; }

.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 8px; }

/* Responsive Grid Row / Column Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.col-md-6 {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
}

.col-md-8 {
    flex: 1 1 calc(66.666% - 0.75rem);
    min-width: 280px;
}

.col-md-4 {
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 240px;
}

@media (max-width: 768px) {
    .col-md-6,
    .col-md-8,
    .col-md-4 {
        flex: 1 1 100%;
        min-width: 0;
    }
}
