/* DNSKit.Net - Health Check Refined Styles (Matching http-headers) */

.security-grade-box {
    text-align: center;
    background: #fff;
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.security-print-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.security-print-btn:hover {
    background: var(--primary);
    color: #fff;
}

.security-grade {
    font-size: 5rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.grade-a {
    color: #16a34a;
}

.grade-b {
    color: #2563eb;
}

.grade-d {
    color: #f59e0b;
}

.grade-f {
    color: #dc2626;
}

.security-score {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.security-score-value {
    color: var(--text-main);
    font-weight: 800;
}

.grade-text-small {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Analysis Items - Enhanced with Global Design System */
.security-analysis-item {
    border-left: 4px solid #cbd5e1;
    padding: 1.25rem !important;
    background: #ffffff;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.security-analysis-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.security-analysis-item.pass {
    border-left-color: #16a34a !important;
    background: linear-gradient(to right, #f0fdf4 0%, #ffffff 100%);
}

.security-analysis-item.warning {
    border-left-color: #f59e0b !important;
    background: linear-gradient(to right, #fffbeb 0%, #ffffff 100%);
}

.security-analysis-item.fail {
    border-left-color: #dc2626 !important;
    background: linear-gradient(to right, #fef2f2 0%, #ffffff 100%);
}

.security-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.security-analysis-title {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.15rem;
}

.security-analysis-status {
    font-size: 0.75rem;
    font-weight: 800;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
}

/* Detail list inside checks */
.check-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    padding: 2px 0;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

/* Compact specific rows if message and code are short */
@media (min-width: 768px) {
    .detail-row-minimal {
        flex-wrap: nowrap;
    }
}

.status-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-marker.pass {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.status-marker.warning {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-marker.fail {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.status-marker.info {
    background-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.detail-msg-small {
    color: #334155;
    font-weight: 500;
}

.detail-code-inline {
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    color: #475569;
    border: none;
    font-weight: 600;
}

/* Record Row Styles (from dns.css) */
.record-item.record-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.record-title {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    min-width: 140px;
}

.record-value {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Info Grid 2 Column Override */
.info-grid.grid-2rem {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .info-grid.grid-2rem {
        grid-template-columns: 1fr !important;
    }
}

/* Recommendations Summary */
.alerts-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.alert-mini-box {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.alert-mini-box h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 800;
}

.alert-mini-box ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.alert-mini-box ul li {
    margin-bottom: 0.5rem;
}

.alert-mini-box.alert-error {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.alert-mini-box.alert-warning {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

/* Action Buttons */
.action-bar-center {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-action-premium {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action-outline {
    padding: 0.8rem 2rem;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

/* Info Section Modern */
.info-card-modern {
    background: #fff;
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.info-header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.info-card-modern h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.modern-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.m-feat-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.2s;
}

.m-feat-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.m-feat-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.m-feat-text h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.m-feat-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media print {

    .security-print-btn,
    .action-bar-center,
    .main-header,
    .main-footer,
    .search-wrapper {
        display: none !important;
    }
}