/* Specific Clinical Risk Page Specific Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --warning-color: #f9a825;
    --danger-color: #ea4335;
    --light-bg: #f8f9fa;
    --dark-text: #202124;
    --light-text: #5f6368;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

.header-card {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #e17055, #d63031, #e84393, #fd79a8);
}

.header-card .card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-card .card-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Status Card */
.status-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid #f9a825;
}

.status-card .card-body {
    padding: 1.5rem;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.status-info {
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status-badge.online {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 184, 148, 0.2);
}

.status-badge.offline {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
    box-shadow: 0 4px 8px rgba(99, 110, 114, 0.2);
}

.status-badge i {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.status-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.status-description {
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.status-actions {
    display: flex;
    gap: 1rem;
}

.btn-refresh, .btn-fullscreen {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-refresh {
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    color: white;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #0d62c9, #0a4fa3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

.btn-fullscreen {
    background: white;
    color: var(--dark-text);
    border: 2px solid #e8eaed;
}

.btn-fullscreen:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Iframe Card */
.iframe-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 800px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.iframe-overlay.hidden {
    display: none;
}

.loading-spinner {
    text-align: center;
    color: var(--light-text);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-spinner p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Quick Info */
.quick-info {
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e17055, #d63031);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(225, 112, 85, 0.2);
}

.info-content {
    flex: 1;
}

.info-number {
    font-size: 2rem;
    font-weight: 700;
    color: #d63031;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.info-label {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Card */
.features-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8fdff, #e1f5fe);
}

.features-card .card-body {
    padding: 2rem;
}

.features-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e17055, #d63031);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 12px rgba(225, 112, 85, 0.2);
}

.feature-item h4 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Support Card */
.support-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid #f9a825;
}

.support-card .card-body {
    padding: 2rem;
}

.support-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.support-info {
    flex: 1;
}

.support-title {
    color: #e65100;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-description {
    color: #5d4037;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #5d4037;
    font-weight: 500;
}

.contact-item i {
    color: #e65100;
    width: 20px;
}

.support-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f9a825, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 6px 12px rgba(245, 124, 0, 0.3);
}

/* Fullscreen Mode */
.iframe-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.iframe-container.fullscreen .iframe-overlay {
    border-radius: 0;
}

/* Animations */
.feature-item {
    animation: slideInUp 0.5s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeIn 0.5s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-card .card-title {
        font-size: 2rem;
    }
    
    .status-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .status-actions {
        justify-content: center;
    }
    
    .iframe-container {
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .support-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .support-contacts {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .quick-info {
        margin-bottom: 1rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .info-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-card .card-title {
        font-size: 1.5rem;
    }
    
    .iframe-container {
        height: 400px;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .support-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .btn-refresh, .btn-fullscreen {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
}