/* crm/_engine/assets/css/style.css */
:root {
    /* Color Palette */
    --primary-color: #0e83a0;      /* Cyan branding color from screenshots */
    --secondary-color: #2c3e50;    /* Dark slate blue for text/sidebar */
    --bg-light: #f4f6f9;           /* Light gray page background */
    --surface-white: #ffffff;      /* Card backgrounds */
    --accent-green: #2cd900;       /* "Convert to Client" button green */
    --accent-red: #e74c3c;         /* Delete/Alert icon red */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-dark: #333333;
    --text-muted: #7f8c8d;
    
    /* Layout Tokens */
    --sidebar-width: 260px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Auth Layout (Mobile-first, touch-friendly) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--bg-light);
}

.auth-card {
    background: var(--surface-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 420px;
}

.auth-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px; /* Generous padding for clean touch interactions */
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px; /* Prevents iOS auto-zoom behavior on focus */
    transition: border var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--surface-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.btn-primary:hover {
    background-color: #0b6980;
}

.alert-danger {
    background-color: #fde8e8;
    color: var(--accent-red);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Layout Architecture */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface-white);
    border-right: 1px solid #e3e6f0;
    padding: 20px 0;
}

.container {
    flex: 1;
    padding: 30px;
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
}

.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
.data-table th, .data-table td { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
.data-table th { background: #f8f9fa; }
.form-card { background: white; padding: 20px; border-radius: var(--border-radius); max-width: 600px; }