/* Medisage Web Interface - Main Styles */

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

:root {
    --primary-color: #1ab2a8;
    --primary-dark: #148f85;
    --secondary-color: #6C63FF;
    --accent-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e9ecef;
    --nav-height: 70px;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Accessibility Improvements */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius-sm);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="150" fill="rgba(26,178,168,0.1)"/><circle cx="800" cy="300" r="100" fill="rgba(108,99,255,0.1)"/><circle cx="300" cy="700" r="120" fill="rgba(33,150,243,0.1)"/></svg>') no-repeat;
    background-size: cover;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-feature i {
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #2c3e50;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 1rem;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.status-bar {
    height: 20px;
    background: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.health-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.health-card i {
    font-size: 2rem;
    color: var(--success-color);
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.app-note {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Security Section */
.security {
    padding: 6rem 0;
    background: var(--background-light);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-features {
    margin-top: 2rem;
}

.security-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.security-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.security-feature h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-shield {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-shield i {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
}

.security-layers {
    position: relative;
    z-index: 2;
}

.layer {
    background: white;
    padding: 1rem 2rem;
    margin: 0.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.layer:nth-child(2) { animation-delay: 0.5s; }
.layer:nth-child(3) { animation-delay: 1s; }
.layer:nth-child(4) { animation-delay: 1.5s; }

/* Download Section */
.download {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.download-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.download-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-btn i {
    font-size: 2rem;
}

.download-btn div {
    text-align: left;
}

.download-btn span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-btn strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.download-stats .stat {
    text-align: center;
}

.download-stats .stat strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download-stats .stat span {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.compliance-note {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

.loading-spinner p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .download-stats {
        gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .security-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .security-layers {
        width: 100%;
        margin-top: 1rem;
    }
    
    .layer {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .download-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .download,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Security & Compliance Styles */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.status-card.completed {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.status-card.in-progress {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.status-card.pending {
    border-left-color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.status-header i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.status-header h4 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.complete {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.progress {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.pending {
    background: #f3f4f6;
    color: #374151;
}

.status-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-card li {
    padding: 8px 0;
    color: #6b7280;
    position: relative;
    padding-left: 20px;
}

.status-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d1d5db;
}

.completed li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

/* Timeline Styles */
.timeline {
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.timeline h4 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-weight: 600;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
}

.timeline-item.completed .timeline-marker {
    background: #10b981;
    box-shadow: 0 0 0 4px #d1fae5;
}

.timeline-item.current .timeline-marker {
    background: #f59e0b;
    box-shadow: 0 0 0 4px #fef3c7;
    animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
    background: #d1d5db;
    box-shadow: 0 0 0 4px #f3f4f6;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 4px #fef3c7; }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 0 4px #fef3c7; }
}

.timeline-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 7px;
    top: 24px;
    width: 2px;
    height: calc(100% + 8px);
    background: #e5e7eb;
}

.timeline-content h5 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* BAA Styles */
.baa-categories {
    margin: 32px 0;
}

.baa-category {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.baa-category h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.baa-category h4 i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.text-green { color: #10b981; }
.text-orange { color: #f59e0b; }
.text-red { color: #ef4444; }

.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vendor-item {
    display: grid;
    grid-template-columns: 2fr 120px 3fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.vendor-name {
    font-weight: 500;
    color: #1f2937;
}

.vendor-status {
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vendor-status.signed {
    background: #d1fae5;
    color: #065f46;
}

.vendor-status.negotiating {
    background: #fef3c7;
    color: #92400e;
}

.vendor-status.no-baa {
    background: #fee2e2;
    color: #991b1b;
}

.vendor-scope {
    color: #6b7280;
    font-size: 0.9rem;
}

.baa-disclosure {
    margin: 32px 0;
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.baa-disclosure h4 {
    margin: 0 0 16px 0;
    color: #991b1b;
    font-weight: 600;
}

.baa-disclosure p {
    margin: 0 0 16px 0;
    color: #7f1d1d;
}

.risk-mitigation {
    margin-top: 20px;
}

.risk-mitigation h5 {
    margin: 0 0 12px 0;
    color: #991b1b;
    font-weight: 600;
}

.risk-mitigation ul {
    margin: 0;
    padding-left: 20px;
    color: #7f1d1d;
}

/* Certification Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.cert-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cert-card.current {
    border-top-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cert-card.target {
    border-top-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.cert-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}

.cert-header i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #6b7280;
}

.cert-card.current .cert-header i {
    color: #10b981;
}

.cert-card.target .cert-header i {
    color: #3b82f6;
}

.cert-header h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 600;
}

.cert-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-status.current {
    background: #d1fae5;
    color: #065f46;
}

.cert-status.target {
    background: #dbeafe;
    color: #1e40af;
}

.cert-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

/* Compliance Regions */
.compliance-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.region-compliance {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.region-compliance h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.region-compliance h4 i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.compliance-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.compliance-item.ready {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
}

.compliance-item.pending {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #f9fafb 100%);
}

.compliance-item span:first-child {
    font-weight: 500;
    color: #1f2937;
}

.compliance-item .status {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
}

.international-notice, .transparency-commitment {
    margin: 32px 0;
    padding: 24px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.international-notice h4, .transparency-commitment h4 {
    margin: 0 0 16px 0;
    color: #0c4a6e;
    font-weight: 600;
}

.international-notice p, .transparency-commitment p {
    margin: 0;
    color: #0f172a;
}

.update-schedule, .contact-security {
    margin-top: 20px;
}

.update-schedule h5, .contact-security h5 {
    margin: 0 0 12px 0;
    color: #0c4a6e;
    font-weight: 600;
}

.update-schedule ul, .contact-security ul {
    margin: 0;
    padding-left: 20px;
    color: #0f172a;
}

.contact-security a {
    color: #2563eb;
    text-decoration: none;
}

.contact-security a:hover {
    text-decoration: underline;
}

/* Security Compliance Mobile Responsive */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .vendor-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-regions {
        grid-template-columns: 1fr;
    }
    
    .compliance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
