.link-checker-wrap {
    max-width: 1200px;
    padding: 20px;
}

.link-checker-wrap h1 {
    margin-bottom: 30px;
    color: #23282d;
}

.link-checker-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

#url-input {
    width: 100%;
    max-width: 600px;
    padding: 8px 12px;
    font-size: 14px;
}

#check-button {
    font-size: 14px;
    height: auto;
    padding: 8px 24px;
}

.spinner {
    float: none;
    margin: 0 0 0 10px;
    vertical-align: middle;
}

.spinner.is-active {
    display: inline-block;
    visibility: visible;
}

#results-container {
    background: #fff;
    padding: 30px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

#results-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
}

.stats-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: #f0f0f1;
    padding: 20px;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stat-item.dofollow {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.stat-item.nofollow {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #23282d;
}

.filter-buttons {
    margin-bottom: 20px;
}

.filter-btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.filter-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.links-table thead {
    background: #f0f0f1;
}

.links-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ccd0d4;
}

.links-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.links-table tr:hover {
    background: #f9f9f9;
}

.link-url {
    word-break: break-all;
    color: #2271b1;
}

.link-anchor {
    color: #666;
    font-style: italic;
}

.link-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.link-badge.dofollow {
    background: #d4edda;
    color: #155724;
}

.link-badge.nofollow {
    background: #fff3cd;
    color: #856404;
}

.link-rel {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

#error-message {
    margin-top: 20px;
}

.notice {
    padding: 12px;
}

/* Frontend Specific Styles */
.link-checker-frontend {
    max-width: 100%;
    margin: 0 auto;
}

.link-checker-frontend .link-checker-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.link-checker-frontend .link-checker-form {
    background: #f9f9f9;
}

.link-checker-frontend .url-input-field {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.link-checker-frontend .link-checker-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.link-checker-frontend .link-checker-button:hover {
    background: #135e96;
}

.link-checker-frontend .link-checker-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.link-checker-frontend .link-checker-filter-btn {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ccd0d4;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-checker-frontend .link-checker-filter-btn:hover {
    background: #e8e8e8;
}

.link-checker-frontend .link-checker-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.link-checker-frontend #results-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Spinner for frontend */
.link-checker-frontend .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: spinner .6s linear infinite;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
}

@media (max-width: 768px) {
    .stats-box {
        flex-direction: column;
    }

    .links-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .links-table th,
    .links-table td {
        padding: 8px;
    }

    .link-checker-frontend .link-checker-title {
        font-size: 22px;
    }
}
