/* Reset dan dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.header h1 i {
    color: #3498db;
    margin-right: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Kartu */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
}

.hint i {
    margin-right: 5px;
}

.hint a {
    color: #3498db;
    text-decoration: none;
    margin-left: 5px;
}

.hint a:hover {
    text-decoration: underline;
}

/* Tombol */
.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

/* Layout utama */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 992px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Statistik */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Tabel */
.table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
}

#results-table thead {
    background-color: #f1f5f9;
}

#results-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e5eb;
}

#results-table td {
    padding: 12px;
    border-bottom: 1px solid #e1e5eb;
}

#results-table tbody tr:hover {
    background-color: #f8f9fa;
}

#results-table .no-data td {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
}

.domain-rating {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.domain-rating.low {
    background-color: #ffeaa7;
    color: #d35400;
}

.domain-rating.medium {
    background-color: #a29bfe;
    color: #2d3436;
}

.domain-rating.high {
    background-color: #55efc4;
    color: #2d3436;
}

.domain-rating.very-high {
    background-color: #74b9ff;
    color: #2d3436;
}

.status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
}
/* Tambahkan setelah .status.error */
.status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.domain-rating.very-low {
    background-color: #ff6b6b;
    color: white;
}

.badge-real, .badge-demo {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: bold;
}

.badge-real {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-demo {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.cache-badge {
    font-size: 0.7rem;
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    border: 1px solid #dee2e6;
}

.dr-container {
    display: flex;
    align-items: center;
    gap: 5px;
}
.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Export */
.export-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.loading-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5eb;
    color: #7f8c8d;
}

.footer i {
    color: #e74c3c;
    margin: 0 5px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.9rem;
    background-color: #fff9e6;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

.disclaimer i {
    color: #f39c12;
}

/* Responsif */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions, .export-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}