/*
----------------------------------------------------
DOMAIN SECURITY TESTER - FILAMENT V3 STYLE
Version: 1.0
----------------------------------------------------
*/

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.5rem;
    color: #60a5fa;
}

.logo span {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    background: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.header p {
    color: #94a3b8;
}

/* ========== CARDS ========== */
.card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
}

.card-title i {
    color: #60a5fa;
    font-size: 1.25rem;
}

/* ========== FORM ========== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    font-size: 0.875rem;
    color: #60a5fa;
}

.default-value {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.default-value i {
    font-size: 0.6rem;
}

input, select {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: 'Inter', monospace;
}

input:focus, select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

input::placeholder {
    color: #475569;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #334155;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: #475569;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #334155;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card .label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.success i { color: #4ade80; }
.stat-card.danger i { color: #f87171; }
.stat-card.info i { color: #60a5fa; }
.stat-card.warning i { color: #fbbf24; }

/* ========== RESULTS TABLE ========== */
.results-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 1rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.results-table th {
    text-align: left;
    padding: 0.75rem;
    background: #1e293b;
    position: sticky;
    top: 0;
    color: #94a3b8;
    font-weight: 500;
}

.results-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.status-failed {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========== PROGRESS BAR ========== */
.progress-bar-container {
    background: #1e293b;
    border-radius: 1rem;
    height: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: linear-gradient(90deg, #4ade80, #60a5fa);
    height: 100%;
    border-radius: 1rem;
    transition: width 0.3s ease;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .container {
        padding: 1rem;
    }
    .card {
        padding: 1.25rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}