/* Link Analyzer Specific UI */

.hidden { display: none !important; }

/* Loader Styles */
.la-loader-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.la-spinner-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.la-loader-box h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.la-loader-box p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Results Area */
.la-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    animation: fadeIn 0.4s ease;
}

.la-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.la-results-header h3 { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.la-results-header p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Dashboard Stats Grid */
.la-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.la-stat-box {
    padding: 20px 15px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid transparent;
}

.la-stat-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.la-stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
}

/* Color Themes for Dashboard */
.box-total { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.2); }
.box-total .la-stat-title { color: var(--primary); }
.box-total .la-stat-val { color: var(--primary); }

.box-internal { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.box-internal .la-stat-title { color: #10b981; }
.box-internal .la-stat-val { color: #10b981; }

.box-external { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.box-external .la-stat-title { color: #f59e0b; }
.box-external .la-stat-val { color: #f59e0b; }

.box-nofollow { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
.box-nofollow .la-stat-title { color: #ef4444; }
.box-nofollow .la-stat-val { color: #ef4444; }

/* Links Table */
.la-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.la-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.la-table th {
    background: var(--bg-secondary);
    color: var(--text-main);
    font-weight: 700;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.la-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.la-table tr:last-child td { border-bottom: none; }
.la-table tr:hover td { background: var(--bg-secondary); }

.link-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    color: var(--primary);
    text-decoration: none;
}
.link-text:hover { text-decoration: underline; }

.badge-tag {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bg-int { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.bg-ext { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.bg-dofollow { background: rgba(37, 99, 235, 0.15); color: var(--primary); }
.bg-nofollow { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Mobile Fixes */
@media (max-width: 768px) {
    .la-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .la-stat-box { padding: 15px 10px; }
    .la-stat-val { font-size: 1.4rem; }
    .link-text { max-width: 150px; }
}
