/* AntiSpywares Robots.txt Analyzer Styles */
.asra-analyzer-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.asra-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 10px;
}

.asra-title {
    color: #5B98BA;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}


.asra-description {
    color: #555;
    font-size: 15px;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
}

.asra-form-wrapper {
    background: #FFFFFF;
    border: 2px solid #5B98BA;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(35, 61, 120, 0.1);
}

.asra-input-group {
    margin-bottom: 24px;
}

.asra-label {
    display: block;
    color: #233D78;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.asra-input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.asra-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #FFFFFF;
    border: 2px solid #5B98BA;
    border-radius: 8px;
    color: #233D78;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asra-tab-btn:hover {
    background: #5B98BA;
    color: #FFFFFF;
}

.asra-tab-btn.active {
    background: #233D78;
    color: #FFFFFF;
    border-color: #233D78;
}

.asra-tab-content {
    display: none;
}

.asra-tab-content.active {
    display: block;
}

.asra-input,
.asra-textarea {
    width: 100%;
    padding: 5px 18px;
    border: 2px solid #5B98BA;
    border-radius: 8px;
    font-size: 15px;
    color: #000000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.asra-input:focus,
.asra-textarea:focus {
    outline: none;
    border-color: #233D78;
    box-shadow: 0 0 0 3px rgba(35, 61, 120, 0.1);
}

.asra-textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.asra-help-text {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.asra-btn {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.asra-btn-primary {
    background: #233D78;
    color: #FFFFFF;
    width: 100%;
}

.asra-btn-primary:hover {
    background: #1a2d5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 61, 120, 0.3);
}

.asra-btn-primary:active {
    transform: translateY(0);
}

.asra-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.asra-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: asra-spin 0.8s linear infinite;
}

@keyframes asra-spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.asra-results {
    margin-top: 30px;
}

.asra-result-card {
    background: #FFFFFF;
    border: 2px solid #5B98BA;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.asra-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #5B98BA;
}

.asra-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.asra-result-icon.success {
    background: #d4edda;
    color: #155724;
}

.asra-result-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.asra-result-icon.error {
    background: #f8d7da;
    color: #721c24;
}

.asra-result-title {
    color: #233D78;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.asra-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.asra-stat-item {
    background: #f8f9fa;
    border: 1px solid #5B98BA;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.asra-stat-value {
    color: #233D78;
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.asra-stat-label {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.asra-message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asra-message-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.asra-message-item.error {
    background: #f8d7da;
    border-left: 4px solid #FF6B6B;
}

.asra-message-item.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.asra-message-item.info {
    background: #d1ecf1;
    border-left: 4px solid #5B98BA;
}

.asra-message-icon {
    font-weight: 700;
    font-size: 16px;
}

.asra-rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.asra-rules-table th,
.asra-rules-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.asra-rules-table th {
    background: #233D78;
    color: #FFFFFF;
    font-weight: 600;
}

.asra-rules-table tr:hover {
    background: #f8f9fa;
}

.asra-code-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    color: #000000;
}

/* Info Section */
.asra-info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.asra-info-title {
    color: #233D78;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.asra-info-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.asra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.asra-info-card {
    background: #FFFFFF;
    border: 1px solid #5B98BA;
    border-radius: 8px;
    padding: 20px;
}

.asra-info-card h4 {
    color: #233D78;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.asra-info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .asra-title {
        font-size: 17px;
    }
    
    .asra-form-wrapper {
        padding: 20px;
    }
    
    .asra-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .asra-info-grid {
        grid-template-columns: 1fr;
    }

    .asra-description {
        font-size: 14px;
    }
}


/* ── Score Card ─────────────────────────────────────── */
.asra-score-card .asra-score-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.asra-score-circle {
    min-width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--score-color, #233D78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asra-score-number {
    font-size: 32px;
    font-weight: 700;
    color: #233D78;
    line-height: 1;
}

.asra-score-max {
    font-size: 13px;
    color: #888;
}

.asra-score-info {
    flex: 1;
}

.asra-score-label {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.asra-score-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.asra-score-bar-wrap {
    background: #eee;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.asra-score-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

/* ── Bot Analysis ───────────────────────────────────── */
.asra-card-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.asra-table-wrap {
    overflow-x: auto;
}

.asra-status-allowed {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.asra-status-partial {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.asra-status-blocked {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.asra-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.asra-badge-critical {
    background: #FF6B6B;
    color: #fff;
}

/* ── Detailed Rule Breakdown ────────────────────────── */
.asra-agent-block {
    margin-bottom: 24px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.asra-agent-header {
    background: #233D78;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
}

.asra-rules-inner {
    margin-top: 0;
    border-radius: 0;
}

.asra-rule-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.asra-rule-type.disallow {
    background: #f8d7da;
    color: #721c24;
}

.asra-rule-type.allow {
    background: #d4edda;
    color: #155724;
}

.asra-no-rules {
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
    margin: 0;
}

.asra-crawl-delay {
    padding: 10px 16px;
    background: #fff3cd;
    margin: 0;
    font-size: 14px;
}

/* ── URL Tester ─────────────────────────────────────── */
.asra-tester-desc {
    color: #555;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.asra-tester-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asra-tester-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.asra-tester-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asra-tester-field .asra-label {
    margin-bottom: 0;
}

.asra-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23233D78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.asra-btn-secondary {
    background: #5B98BA;
    color: #FFFFFF;
    padding: 14px 30px;
    width: 100%;
}

.asra-btn-secondary:hover {
    background: #4a85a5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 152, 186, 0.3);
}

.asra-test-result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.asra-test-result-box.allowed {
    background: #d4edda;
    border-left: 5px solid #28a745;
}

.asra-test-result-box.blocked {
    background: #f8d7da;
    border-left: 5px solid #FF6B6B;
}

.asra-test-result-box.error {
    background: #f8d7da;
    border-left: 5px solid #FF6B6B;
}

.asra-test-verdict {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.asra-test-icon {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.asra-test-label {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asra-test-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
}

.asra-test-details code {
    background: rgba(0,0,0,0.07);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* ── Responsive additions ───────────────────────────── */
@media (max-width: 768px) {
    .asra-score-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .asra-tester-row {
        grid-template-columns: 1fr;
    }
    .asra-test-result-box {
        flex-direction: column;
    }
}
