.hdra-input-section {
    background: var(--white, #fff);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.hdra-input-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color, #333);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hdra-input-section h3 i {
    color: var(--primary-color, #2196F3);
}
.hdra-textarea {
    width: 100%;
    min-height: 220px;
    padding: 15px;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafbfc;
}
.hdra-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    background: #fff;
}
.hdra-textarea::placeholder {
    color: #aaa;
    font-family: 'Courier New', monospace;
}
.hdra-template-section {
    margin-top: 20px;
}
.hdra-template-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}
.hdra-template-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.hdra-tpl-btn {
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid #e0e3eb;
    border-radius: 20px;
    background: #f5f7fa;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.hdra-tpl-btn:hover {
    background: var(--primary-color, #2196F3);
    color: #fff;
    border-color: var(--primary-color, #2196F3);
}
.hdra-tpl-btn i {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 4px;
}
.hdra-btn-group {
    text-align: center;
    margin: 25px 0;
}
.hdra-results-section {
    display: none;
    margin-top: 25px;
}
.hdra-results-section.active {
    display: block;
}
.hdra-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecef;
}
.hdra-results-header h3 {
    font-size: 18px;
    color: var(--text-color, #333);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hdra-results-header h3 i {
    color: var(--primary-color, #2196F3);
}
.hdra-stats-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hdra-stat-item {
    background: #f5f7fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}
.hdra-stat-item strong {
    color: var(--primary-color, #2196F3);
}
.hdra-header-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.hdra-header-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.hdra-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.hdra-card-header:hover {
    background: #eef1f5;
}
.hdra-card-header .hdra-field-name {
    font-weight: 600;
    color: var(--primary-color, #2196F3);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    min-width: 180px;
}
.hdra-card-header .hdra-field-value {
    flex: 1;
    color: #555;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 10px;
}
.hdra-card-header .hdra-toggle-icon {
    color: #999;
    font-size: 18px;
    transition: transform 0.3s;
}
.hdra-card-header.expanded .hdra-toggle-icon {
    transform: rotate(180deg);
}
.hdra-card-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #e8ecef;
}
.hdra-card-body.expanded {
    display: block;
}
.hdra-field-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.hdra-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.hdra-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    min-width: 70px;
    padding-top: 2px;
}
.hdra-meta-value {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.hdra-meta-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 3px;
}
.hdra-tag-request {
    background: #e3f2fd;
    color: #1976d2;
}
.hdra-tag-general {
    background: #f3e5f5;
    color: #7b1fa2;
}
.hdra-tag-security {
    background: #e8f5e9;
    color: #388e3c;
}
.hdra-tag-cookie {
    background: #fff3e0;
    color: #f57c00;
}
.hdra-tag-cors {
    background: #fce4ec;
    color: #c62828;
}
.hdra-security-section {
    display: none;
    margin-top: 25px;
}
.hdra-security-section.active {
    display: block;
}
.hdra-score-container {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}
.hdra-score-gauge {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}
.hdra-score-gauge svg {
    transform: rotate(-90deg);
}
.hdra-score-gauge .hdra-gauge-bg {
    fill: none;
    stroke: #e8ecef;
    stroke-width: 10;
}
.hdra-score-gauge .hdra-gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}
.hdra-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.hdra-score-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}
.hdra-score-label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.hdra-security-items {
    flex: 1;
    min-width: 250px;
}
.hdra-security-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.hdra-security-item:last-child {
    border-bottom: none;
}
.hdra-sec-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.hdra-sec-icon.hdra-sec-pass {
    background: #e8f5e9;
    color: #4caf50;
}
.hdra-sec-icon.hdra-sec-warn {
    background: #fff3e0;
    color: #ff9800;
}
.hdra-sec-icon.hdra-sec-fail {
    background: #ffebee;
    color: #f44336;
}
.hdra-sec-icon .material-icons {
    font-size: 16px;
}
.hdra-sec-content {
    flex: 1;
}
.hdra-sec-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.hdra-sec-desc {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .hdra-score-container {
        flex-direction: column;
        align-items: center;
    }
    .hdra-card-header .hdra-field-name {
        min-width: auto;
        max-width: 100%;
    }
    .hdra-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .hdra-card-header .hdra-field-value {
        margin: 0;
        font-size: 12px;
    }
    .hdra-stats-bar {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .hdra-template-grid {
        gap: 5px;
    }
    .hdra-tpl-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .hdra-score-gauge {
        width: 120px;
        height: 120px;
    }
    .hdra-score-number {
        font-size: 28px;
    }
}