/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eff6ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: #2563eb;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.site-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* Main Content */
.main-content {
    padding: 2rem 1rem;
}

/* Card */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.search-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-header {
    background: #f8fafc;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    flex-shrink: 0;
}

.card-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.card-content {
    padding: 1.5rem;
}

.record-count {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #0f172a;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

/* Security Item */
.security-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    margin-bottom: 0.75rem;
}

.security-item:last-child {
    margin-bottom: 0;
}

.security-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.security-icon.active {
    color: #16a34a;
}

.security-icon.inactive {
    color: #dc2626;
}

.security-content {
    flex: 1;
    min-width: 0;
}

.security-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.security-details {
    font-size: 0.75rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-active {
    background: #2563eb;
    color: white;
}

.badge-inactive {
    background: #e2e8f0;
    color: #475569;
}

/* Records Grid */
.records-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .records-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Record Item */
.record-item {
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    background: #f8fafc;
    margin-bottom: 0.75rem;
}

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

.record-field {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

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

.record-field.full-width {
    flex-direction: column;
}

.record-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
    min-width: 100px;
}

.record-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #0f172a;
    word-break: break-all;
}

/* Reverse DNS */
.reverse-dns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
    padding: 1.5rem 0;
}

.footer p {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.3s ease-in;
}

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

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .record-label {
        min-width: 80px;
    }
}

