/**
 * Design System CSS Premium - M7CRM
 * Arquivo Global de Estilos para consistência visual e flexibilidade
 */

:root {
    /* Brand Colors */
    --brand-blue: #344a99;
    --brand-blue-dark: #1e2d6b;
    --brand-blue-light: #eff6ff;
    --brand-blue-hover: #253675;
    
    /* Layout Variables */
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius-lg: 1.25rem; /* 20px */
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Dark Mode Integration */
html.dark-mode, body.dark-mode {
    --bg-color: #0b0f19;
    --surface: #121824;
    --text-color: #f8fafc;
    --text-muted: #8b9bb4;
    --border-color: #1f2937;
    --brand-blue-light: rgba(52, 74, 153, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.45);
}

/* Typography & Reset */
body {
    background: var(--bg-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Premium Wrapper */
.premium-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

/* Premium Buttons */
.btn-premium {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    outline: none;
}

.btn-premium:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-premium.primary {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.btn-premium.primary:hover {
    background: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
}

/* Premium Input Fields */
.input-premium {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.925rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.input-premium:focus {
    border-color: #3b82f6;
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

/* Specific select height fix */
select.input-premium {
    height: 52px;
    background-image: none;
    cursor: pointer;
}

/* Premium Modal Style Rules */
.modal-overlay-premium {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay-premium.active {
    display: flex !important;
}

.modal-card-premium {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 36px 42px;
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Section/Filter Headers */
.section-title-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.725rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}
