/**
 * HTTP Security Headers Analyzer CSS
 */

/* Header links styling */
.header-link {
    display: flex;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.header-link:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

.header-link .fa-arrow-right {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.header-link:hover .fa-arrow-right {
    opacity: 1;
    transform: translateX(0);
}

.list-group-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    border-left: 3px solid #0d6efd;
    background-color: #f8f9fa;
}

/* Results table styling */
.header-name {
    font-size: 1.1rem;
    color: #333;
}

.header-status {
    display: flex;
    align-items: center;
}

.status-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.header-value-row {
    border-top: none !important;
}

.header-value-row td {
    padding-top: 0 !important;
}

.header-value {
    border-left: 3px solid #6c757d;
    padding-left: 15px;
}

.table tbody tr.header-value-row:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* CSP security warnings */
.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.alert-danger code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    color: #e83e8c;
}

/* CSP Warning Box */
.border-danger {
    border-color: #dc3545 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

.border-success {
    border-color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.border-info {
    border-color: #0dcaf0 !important;
}

.text-muted {
    color: #6c757d !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Grade badge styling */
.grade-badge {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 44px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    color: white;
	background: cadetblue;
	text-shadow: 2px 2px black;
}

.grade-a-plus {
    background-color: #28a745;
}

.grade-a {
    background-color: #28a745;
}

.grade-b {
    background-color: #ffc107;
}

.grade-c {
    background-color: #fd7e14;
}

.grade-d {
    background-color: #dc3545;
}

.grade-f {
    background-color: #dc3545;
}

/* Spinner container */
.spinner-container {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Improve accessibility */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive improvements */
@media (max-width: 767px) {
    .grade-badge {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 28px;
    }
    
    .header-name {
        font-size: 1rem;
    }
}

/* Custom Styles for HTTP Security Headers Analyzer */

/* Body styles */
body {
    background-color: #f8f9fa;
}

/* Card styling */
.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.card-header {
    font-weight: 500;
}

/* Header status indicators */
.status-text {
    font-weight: 500;
}

/* Result details */
.header-details {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Extra styling for better readability */
.header-name {
    font-weight: 600;
}

/* Tooltip customization */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* Custom navbar style */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Making the form elements more prominent */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer styling */
footer {
    border-top: 1px solid #dee2e6;
}

/* Info Links Styles */
.related-headers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-header-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-header-link:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    text-decoration: none;
    color: #0d6efd;
}

.related-header-link span {
    flex: 1;
    margin-right: 10px;
}

.related-header-link .fa-arrow-right {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.related-header-link:hover .fa-arrow-right {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive improvements */
@media (max-width: 767px) {
    .related-header-link {
        padding: 10px;
        font-size: 0.9rem;
    }
} 

