/* Dr. Alex AI Provider Dashboard - Custom CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

/* Color Variables */
:root {
    --ai-blue: #2563eb;
    --ai-purple: #7c3aed;
    --ai-green: #059669;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Header Styles */
header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--ai-blue);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    background: var(--ai-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--ai-blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-purple {
    background: var(--ai-purple);
    color: white;
}

.btn-purple:hover {
    background: #6d28d9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-green) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 120px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    position: relative;
}

.card-popular {
    border: 2px solid var(--ai-blue);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ai-blue);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ai-blue);
    margin-bottom: 1rem;
}

.price-purple {
    color: var(--ai-purple);
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.feature-icon {
    margin-right: 0.5rem;
    font-weight: 500;
}

.feature-icon.check {
    color: var(--ai-green);
}

.feature-icon.cross {
    color: var(--gray-400);
}

.feature-disabled {
    color: var(--gray-400);
}

/* Chat Demo */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    margin-bottom: 1.5rem;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem;
    border-radius: 12px;
}

.message.user .message-bubble {
    background: var(--ai-blue);
    color: white;
}

.message.ai .message-bubble {
    background: var(--gray-200);
    color: var(--gray-800);
}

.ai-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-icon {
    color: var(--ai-blue);
    margin-right: 0.5rem;
}

.chat-input {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    font-size: 1rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--ai-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Feature Cards */
.feature-card {
    text-align: center;
}

.feature-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.feature-icon-blue {
    background: var(--ai-blue);
    color: white;
}

.feature-icon-purple {
    background: var(--ai-purple);
    color: white;
}

.feature-icon-green {
    background: var(--ai-green);
    color: white;
}

.feature-icon-yellow {
    background: #eab308;
    color: white;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Section Backgrounds */
.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

/* Text Colors */
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Security Trust Badges */
.security-trust {
    background-color: #eff6ff;
    border-bottom: 1px solid #e5e7eb;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.badge-text {
    color: var(--gray-700);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Compliance Section */
.compliance-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.compliance-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.compliance-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.compliance-badge .badge-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.security-differentiator {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe;
}

.security-feature {
    text-align: center;
    padding: 1rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Background Colors */
.bg-white {
    background-color: white;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .compliance-badges {
        gap: 0.75rem;
    }

    .compliance-badge {
        padding: 0.75rem;
    }

    .security-differentiator .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Hover Effects */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Patient Apps Section */
.app-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
    border-color: var(--ai-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #f0f9ff;
    color: var(--ai-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.app-status-badge.active {
    background: #22c55e;
    color: white;
}

.app-status-badge.coming-soon {
    background: #f59e0b;
    color: white;
}

.app-status-badge.future {
    background: #8b5cf6;
    color: white;
}

.app-card {
    position: relative;
}

.app-card.active {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.app-card.coming-soon {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    opacity: 0.9;
}

.app-card.future {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    opacity: 0.8;
}

.app-card.coming-soon .app-icon,
.app-card.future .app-icon {
    opacity: 0.7;
}

.app-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}