/* Main Styles - Security Scanner */
:root {
    --primary-color: #0d6efd;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --accent: #0f3460;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    min-height: 100vh;
    color: #f5f5f5;
}

.navbar {
    background: rgba(22, 33, 62, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #fff !important;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(13, 110, 253, 0.3);
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header {
    background: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0 !important;
}

.form-control, .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
}

.result-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.status-open {
    color: #5cdb5c;
    font-weight: 600;
}

.status-closed {
    color: #ff6b6b;
    font-weight: 600;
}

.status-filtered {
    color: #ffd93d;
    font-weight: 600;
}

.grade-badge {
    font-size: 2.5rem;
    font-weight: 700;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grade-A { background: linear-gradient(135deg, #28a745, #20c997); }
.grade-B { background: linear-gradient(135deg, #20c997, #17a2b8); }
.grade-C { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.grade-D { background: linear-gradient(135deg, #fd7e14, #dc3545); }
.grade-F { background: linear-gradient(135deg, #dc3545, #c82333); }

.table {
    color: #f5f5f5;
}

.table thead {
    background: var(--accent);
}

.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #0d6efd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #5a9cff;
    margin-bottom: 15px;
}

.secure-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.insecure-badge {
    background: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.missing-badge {
    background: #8a939c;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.loading-spinner {
    display: none;
}

.loading .loading-spinner {
    display: inline-block;
}

.loading .btn-text {
    display: none;
}

footer {
    background: rgba(22, 33, 62, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 50px;
}

/* Improved text readability */
.text-muted {
    color: #b8c5d6 !important;
}

.card-text {
    color: #c8d4e3;
}

.form-label {
    color: #e8eef5;
    font-weight: 500;
}

small.text-muted, .small.text-muted {
    color: #a8b8cc !important;
}

code {
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.text-warning {
    color: #ffd93d !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.text-success {
    color: #5cdb5c !important;
}

.text-primary {
    color: #5a9cff !important;
}

.text-info {
    color: #67d4e5 !important;
}

.alert-info {
    background: rgba(103, 212, 229, 0.15);
    border-color: rgba(103, 212, 229, 0.3);
    color: #a5e8f3;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ffacac;
}

.card-title {
    color: #ffffff;
}

h5, h6 {
    color: #f0f4f8;
}

strong {
    color: #e8eef5;
}

.progress {
    background: rgba(255,255,255,0.1);
}

/* ===========================================
   TLS Scan Page Styles
   =========================================== */
.result-text {
    color: #f5f5f5;
}

.result-value {
    color: #7dd3fc;
}

.cert-list {
    color: #e0e8f0;
}

.cert-list li {
    color: #e0e8f0;
}

.cert-key {
    color: #b8c5d6;
}

.cert-value {
    color: #7dd3fc;
}

.result-card h6 {
    color: #f0f4f8;
    margin-bottom: 15px;
}

.result-card p {
    color: #e8eef5;
}

.result-card strong {
    color: #ffffff;
}

/* Cipher table styling */
.cipher-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.cipher-table thead {
    background: rgba(15, 52, 96, 0.8);
}

.cipher-table .table-header {
    color: #ffffff;
    font-weight: 600;
    background: rgba(15, 52, 96, 0.8);
    border-bottom: 2px solid rgba(125, 211, 252, 0.3);
}

.cipher-table tbody {
    background: transparent;
}

.cipher-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
}

.cipher-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cipher-table tbody tr.table-danger {
    background: rgba(220, 53, 69, 0.2);
}

.cipher-table tbody tr.table-danger:hover {
    background: rgba(220, 53, 69, 0.3);
}

.cipher-table td {
    color: #e8eef5;
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

.cipher-table .cipher-name code {
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.table th {
    color: #f0f4f8;
}

.table td {
    color: #e0e8f0;
}

/* ===========================================
   Headers Audit Page Styles
   =========================================== */
.headers-table {
    background: transparent;
}

.headers-table thead {
    background: rgba(15, 52, 96, 0.8);
}

.headers-table thead th {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid rgba(125, 211, 252, 0.3);
    background: rgba(15, 52, 96, 0.8);
}

.headers-table tbody {
    background: transparent;
}

.headers-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
}

.headers-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.headers-table td {
    color: #e8eef5;
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

.headers-table td strong {
    color: #ffffff;
}

.headers-table td code {
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
}

/* Recommendations list styling */
.recommendations-list {
    color: #e8eef5;
}

.recommendations-list li {
    color: #e8eef5;
    margin-bottom: 8px;
}

/* ===========================================
   DNS Tools Page Styles
   =========================================== */
.dns-table {
    background: transparent !important;
}

.dns-table th {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dns-table td {
    background: transparent !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.record-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.record-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.txt-record {
    max-width: 600px;
    overflow-wrap: break-word;
}

.security-check {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.security-pass {
    background: rgba(25, 135, 84, 0.2);
    border-left: 3px solid #198754;
}

.security-fail {
    background: rgba(220, 53, 69, 0.2);
    border-left: 3px solid #dc3545;
}

/* ===========================================
   Network Scan Page Styles
   =========================================== */
.scan-table {
    background: transparent !important;
}

.scan-table th {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.scan-table td {
    background: transparent !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.scan-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ===========================================
   Login Page Styles
   =========================================== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 50px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.login-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.login-body {
    padding: 30px;
}

.form-floating > .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.form-floating > .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: #00d4ff;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

.form-floating > label {
    color: rgba(255,255,255,0.6);
}

.form-check-input {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.form-check-input:checked {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.form-check-label {
    color: rgba(255,255,255,0.8);
}

/* ===========================================
   Form Select Dark Theme (DNS & Network)
   =========================================== */
.form-select {
    background-color: #1a1a2e !important;
    color: #f5f5f5 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.form-select:focus {
    background-color: #1a1a2e !important;
    color: #f5f5f5 !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25) !important;
}

.form-select option {
    background-color: #16213e !important;
    color: #f5f5f5 !important;
}

.form-select:disabled {
    background-color: #0d0d1a !important;
    color: #666 !important;
    cursor: not-allowed;
}
