/* DNSKit.Net - HTTP Headers Security Analysis Styles */

.security-grade-box {
    text-align: center;
    background: #fff;
    padding: 3rem !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;
}

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

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

.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;
}

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

.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: 0.5rem;
}

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

.security-analysis-status {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.security-analysis-msg {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Headers Table Enhanced Styling */
/* Record Row Styles (Analiz Özeti) */
.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid #cbd5e1;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.record-row:last-child {
    margin-bottom: 0;
}

.record-row:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border-left-color: #3b82f6;
}

.record-title {
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.record-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.record-value.text-success {
    color: #16a34a;
}

/* Headers Table Enhanced Styling */
.dns-records-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Row spacing */
    width: 100%;
}

.dns-records-table tbody tr {
    transition: all 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dns-records-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left-style: solid;
    border-left-width: 4px;
}

.dns-records-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: 1px solid #e2e8f0;
}

.dns-records-table td {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    /* Default background */
}

/* Row Colors */
.row-general td {
    background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
}

.row-general td:first-child {
    border-left-color: #94a3b8;
}

.row-security td {
    background: linear-gradient(to right, #f0fdf4 0%, #ffffff 100%);
}

.row-security td:first-child {
    border-left-color: #16a34a;
}

.row-security td.dns-host-cell {
    color: #166534;
}

.row-cache td {
    background: linear-gradient(to right, #eff6ff 0%, #ffffff 100%);
}

.row-cache td:first-child {
    border-left-color: #3b82f6;
}

.row-cache td.dns-host-cell {
    color: #1e40af;
}

.row-server td {
    background: linear-gradient(to right, #fef2f2 0%, #ffffff 100%);
}

.row-server td:first-child {
    border-left-color: #ef4444;
}

.row-server td.dns-host-cell {
    color: #991b1b;
}

.row-info td {
    background: linear-gradient(to right, #fffbeb 0%, #ffffff 100%);
}

.row-info td:first-child {
    border-left-color: #f59e0b;
}

.row-info td.dns-host-cell {
    color: #92400e;
}

/* Hover Effect for Table Rows */
.dns-records-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dns-records-table .dns-host-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

.dns-records-table .dns-value-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all;
}

/* Print Styles */
@media print {

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

    body {
        background: #fff !important;
        padding: 20px;
    }

    .result-box {
        box-shadow: none !important;
        border: none !important;
    }

    .security-analysis-item {
        break-inside: avoid;
        border: 1px solid #eee !important;
        border-left: 5px solid #ddd !important;
        margin-bottom: 10px;
        background: none !important;
    }
}