/* Google Material Design / Goowai CRM Theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #1a73e8; /* Google Blue */
    --primary-hover: #1557b0;
    --secondary-color: #e8f0fe; /* Light Blue background */
    --accent-color: #fbbc04; /* Google Yellow */
    --success-color: #0d904f; /* Google Green */
    --error-color: #d93025; /* Google Red */

    /* Surface Colors */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --border-color: #dadce0;

    /* Typography */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-disabled: #80868b;
    
    /* Spacing & Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 24px; /* Rounded buttons */
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

.auth-container {
    max-width: 450px;
    margin: 80px auto;
}

.main-content {
    flex: 1;
}

/* Components: Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px; /* Slightly rounded */
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.25px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: #f1f3f4;
    border-color: var(--text-disabled);
}

.btn-block {
    width: 100%;
}

/* Forms: Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    background-color: var(--surface-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Header */
.app-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.brand i, .brand span.logo-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* User Avatar */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Steps (Wizard) */
.steps-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    color: var(--text-disabled);
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 16px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    font-size: 0.875rem;
}

.step.active {
    color: var(--primary-color);
}

.step.active .step-circle {
    background-color: var(--primary-color);
}

.step.completed .step-circle {
    background-color: var(--success-color);
}

.step.completed:not(:last-child)::after {
    background-color: var(--success-color);
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-small { font-size: 0.875rem; color: var(--text-secondary); }

/* Contract Viewer */
.contract-viewer {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 32px;
    height: 400px;
    overflow-y: auto;
    font-family: 'Times New Roman', serif; /* Contracts often look formal */
    margin-bottom: 24px;
    color: #000;
    line-height: 1.8;
}

/* Badge */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: #e6f4ea; color: #137333; }
.badge-warning { background: #fef7e0; color: #b06000; }
