/* Heardsafe - Employee Advocacy Platform */
/* Color Palette based on HeardSafe brand logo */

:root {
    --primary: #1A365D;           /* Deep navy blue - main brand color */
    --primary-dark: #142850;
    --primary-light: #2C5282;
    --accent: #2B6CB0;            /* Teal/steel blue - swoosh accent */
    --accent-light: #4299E1;
    --dark: #1A202C;              /* Rich dark for text */
    --dark-light: #2D3748;
    --white: #FFFFFF;
    --light: #F8F3F0;             /* Warm off-white/cream - matches logo background */
    --gray: #718096;
    --gray-light: #E2E8F0;
    --success: #38A169;
    --danger: #E53E3E;
    --warning: #D69E2E;
    --cream: #FAF9F7;             /* Lighter cream for cards */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-light);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Navigation */
nav {
    background: var(--light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo .logo-icon {
    height: 45px;
    width: auto;
}

.logo .logo-wordmark {
    height: 38px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-style: italic;
    letter-spacing: 0.5px;
}

.logo span:not(.tagline) {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

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

.nav-links a.btn {
    color: var(--white);
}

.nav-links a.btn-outline {
    color: var(--primary);
}

.nav-links a.btn-outline:hover {
    color: var(--white);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: var(--light);
    color: var(--dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(26, 54, 93, 0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary);
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-visual {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 240px;
    height: auto;
    position: relative;
    z-index: 2;
}

.hero-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2.5s ease-out infinite;
}

.hero-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2.5s ease-out infinite 0.5s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}


.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Phone Highlight */
.phone-highlight {
    margin-top: 25px;
    padding: 20px 25px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.1);
}

.phone-label {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.phone-number {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.phone-number:hover {
    color: var(--accent);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.badge-icon {
    font-size: 1.2rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    padding: 35px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-accent {
    font-size: 1.1rem;
    padding: 16px 36px;
    background: var(--white);
    color: var(--primary);
}

.cta .btn-accent:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand img {
    height: auto;
    width: auto;
}

footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 155, 213, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo,
.auth-header .auth-logo {
    justify-content: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.auth-header .logo img,
.auth-header .auth-logo img {
    height: auto;
    width: auto;
    border: none;
}

.auth-header .logo .logo-icon,
.auth-header .auth-logo .logo-icon {
    height: 70px;
}

.auth-header .logo .logo-wordmark,
.auth-header .auth-logo .logo-wordmark {
    height: 45px;
}

.auth-header p {
    color: rgba(255,255,255,0.7);
}

.auth-header .tagline-auth {
    color: var(--accent-light);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Dashboard */
.dashboard-body {
    background: var(--light);
    min-height: 100vh;
}

.dashboard-nav {
    background: var(--light);
    color: var(--dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.dashboard-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-nav .logo img {
    height: 38px;
    width: auto;
}

.dashboard-nav .logo .logo-icon {
    height: 38px;
}

.dashboard-nav .logo .logo-wordmark {
    height: 30px;
}

.dashboard-nav .logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.dashboard-nav .back-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-nav .back-link:hover {
    color: var(--primary);
}

.dashboard-nav .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.dashboard-nav .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Dashboard Content */
.dashboard-main {
    padding: 30px 0;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 30px 35px;
    color: var(--white);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-banner h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.welcome-banner p {
    opacity: 0.9;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-actions .btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.welcome-actions .btn:hover {
    background: rgba(255,255,255,0.3);
}

.welcome-actions .btn-accent {
    background: var(--accent);
    color: var(--dark);
    border: none;
}

/* Stats Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-light);
}

.stat-card h4 {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.stat-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--white);
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.action-card h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.action-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Safe Indicator */
.safe-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recent Items */
.recent-section {
    background: var(--white);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recent-header h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

.recent-list {
    list-style: none;
}

.recent-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item:last-child {
    border-bottom: none;
}

/* Chat Interface */
.chat-page {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-page .dashboard-nav {
    flex-shrink: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.chat-info h3 {
    color: var(--dark);
    margin-bottom: 2px;
}

.chat-info p {
    color: var(--gray);
    font-size: 0.85rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--light);
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.assistant {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.message.user {
    background: var(--white);
    color: var(--dark);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.chat-input-area {
    padding: 15px 20px;
    background: var(--white);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.chat-input-form {
    display: flex;
    gap: 10px;
}

.chat-input-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.3s;
    min-width: 0; /* Allows input to shrink */
}

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

.chat-input-form button {
    padding: 14px 24px;
    border-radius: 25px;
    flex-shrink: 0;
}

/* Quick responses */
.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.quick-responses span {
    display: none;
}

.quick-btn {
    padding: 8px 14px;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-btn:hover, .quick-btn:active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--gray-light);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    max-width: 60px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Mobile Chat Styles */
@media (max-width: 768px) {
    .chat-page .dashboard-nav .nav-container {
        padding: 0 15px;
    }
    
    .chat-page .dashboard-nav .logo h1 {
        display: none;
    }
    
    .chat-page .dashboard-nav .logo img {
        height: 35px;
        width: 35px;
    }
    
    .chat-page .back-link {
        font-size: 0.9rem;
    }
    
    .chat-page #newSessionBtn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .chat-container {
        padding: 10px;
        padding-bottom: 0;
    }
    
    .chat-header {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .chat-info h3 {
        font-size: 1rem;
    }
    
    .chat-info p {
        font-size: 0.75rem;
    }
    
    .chat-messages {
        padding: 15px;
        gap: 12px;
    }
    
    .message {
        max-width: 90%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .chat-input-area {
        padding: 12px 15px;
        border-radius: 0;
    }
    
    .chat-input-form input {
        padding: 12px 16px;
    }
    
    .chat-input-form button {
        padding: 12px 18px;
    }
    
    .quick-responses {
        padding: 8px 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .quick-responses::-webkit-scrollbar {
        display: none;
    }
    
    .quick-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-submitted {
    background: rgba(91, 155, 213, 0.15);
    color: var(--primary);
}

.status-in_progress {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-draft {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray);
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(43, 108, 176, 0.15);
    color: var(--accent);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Incident Page */
.incident-main {
    padding: 30px 0;
}

.incident-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.incident-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.incident-header h1 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.incident-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.incident-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.incident-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.incident-section h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.incident-section p {
    color: var(--dark);
    line-height: 1.7;
}

.incident-footer {
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid var(--gray-light);
}

.footer-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.timestamp {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Conversations List */
.conversation-list {
    list-style: none;
}

.conversation-item {
    margin-bottom: 15px;
}

.conversation-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
}

.conversation-link:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.conversation-date {
    font-weight: 600;
    color: var(--dark);
}

.conversation-preview {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 8px 0;
}

.conversation-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.has-incident {
    color: var(--success);
    font-weight: 500;
}

/* Filters */
.filters {
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
}

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

.clear-filters {
    color: var(--primary);
    font-weight: 500;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Incident Notification */
.incident-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
}

.incident-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 2rem;
}

.notification-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 3px;
}

.notification-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.notification-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notification-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        order: -1;
    }

    .hero-logo-container {
        width: 200px;
        height: 200px;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-pulse {
        width: 180px;
        height: 180px;
    }

    .hero-pulse::before {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .phone-highlight {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .phone-number {
        font-size: 1.3rem;
    }

    .trust-badges {
        justify-content: center;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--gray-light);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        text-align: center;
    }

    .nav-links a.btn {
        width: 100%;
    }

    .incident-card {
        padding: 25px;
    }

    .footer-actions {
        flex-direction: column;
    }
}