:root {
    --primary-blue: #1E6FFF;
    --primary-blue-dark: #1652C0;
    --primary-blue-light: #E0ECFF;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-light: #A0AEC0;
    --background-white: #FFFFFF;
    --background-gray: #F5F7FA;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-white);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    outline: none;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    outline: none;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

/* Custom Utility Classes */
.full-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Typography */
.heading-lg {
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 700;
}

.heading-md {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 600;
}

.text-body {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 111, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(30, 111, 255, 0.2);
}

.btn-secondary {
    background-color: var(--background-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    background-color: var(--background-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--background-white);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    font-size: 1rem;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.1);
}

/* Onboarding */
.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    width: 24px;
    border-radius: 4px;
}

/* Spacing Helpers */
.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}

.py-2xl {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

/* Logo */
.logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.logo-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

/* Illustrations */
.onboarding-illustration {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.illustration-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.illustration-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.btn-icon {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Refactor Utilities --- */
/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-modal {
    z-index: 2000;
}

.z-toast {
    z-index: 1000;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.gap-xs {
    gap: 0.5rem;
}

.gap-sm {
    gap: 0.75rem;
}

.gap-md {
    gap: 1rem;
}

/* Colors & Backgrounds */
.bg-white {
    background-color: var(--background-white);
}

.bg-gray {
    background-color: var(--background-gray);
}

.bg-primary-light {
    background-color: var(--primary-blue-light);
}

.bg-success {
    background-color: #10B981;
}

.bg-error-light {
    background-color: #FEE2E2;
}

.bg-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-none {
    background: none;
}

.text-white {
    color: white;
}

.text-primary {
    color: var(--primary-blue);
}

.text-error {
    color: #DC2626;
}

.text-error-dark {
    color: #991B1B;
}

/* Borders & Cursor */
.border-none {
    border: none;
}

.cursor-pointer {
    cursor: pointer;
}

.rounded-circle {
    border-radius: 50%;
}

/* Form Helpers */
.input-with-icon {
    padding-left: 2.75rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.validation-message {
    color: var(--text-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Components */
.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
}

.toast-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.profile-photo-wrapper {
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--background-gray);
    border: 2px solid var(--primary-blue-light);
    margin-bottom: 1rem;
    cursor: pointer;
}

.photo-upload-btn {
    position: absolute;
    bottom: 1rem;
    right: 0;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-header {
    background-color: var(--primary-blue-light);
}

.schedule-th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--primary-blue);
}

.schedule-td-day {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.schedule-td-input {
    padding: 0.5rem 1rem;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
}

.gdpr-box {
    background-color: #EFF6FF;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #BFDBFE;
}

/* Illustration Specifics */
.illus-users {
    top: 20%;
    right: 10%;
}

.illus-check {
    bottom: 25%;
    right: 5%;
}

.illus-quote {
    bottom: 30%;
    left: 10%;
}

.illus-bell {
    top: 20%;
    right: 10%;
}

.illus-chart {
    bottom: 25%;
    right: 5%;
}

.illus-tie {
    top: 20%;
    right: 10%;
}

.illus-building {
    bottom: 25%;
    right: 5%;
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}