* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #2c3e50;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
}

.header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: -30px auto 40px;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 30px;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafbfc;
}

.upload-area:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background-color: #f0f2ff;
    transform: scale(1.02);
}

.upload-area.uploaded {
    border-color: #48bb78;
    background-color: #f0fdf4;
    padding: 30px 20px;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.upload-text {
    font-size: 18px;
    color: #718096;
    margin: 0;
}

.upload-subtext {
    font-size: 14px;
    color: #a0aec0;
    margin: 10px 0 0;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #48bb78;
    font-weight: 500;
}

input[type="file"] {
    display: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
}

.tag-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tag-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #f7fafc;
}

.tag-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-danger {
    background-color: #fed7d7;
    color: #c53030;
    padding: 10px 16px;
}

.btn-danger:hover {
    background-color: #feb2b2;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.summary {
    background: linear-gradient(135deg, #f6f9fc 0%, #f0f4f8 100%);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.summary-label {
    font-size: 14px;
    color: #718096;
    margin: 5px 0 0;
}

.tag-result {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.tag-result:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tag-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.tag-header.found {
    background-color: #f0fdf4;
    border-left: 4px solid #48bb78;
}

.tag-header.not-found {
    background-color: #fef5f5;
    border-left: 4px solid #f56565;
}

.tag-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-name {
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-found {
    background-color: #d4f1e1;
    color: #276749;
}

.status-not-found {
    background-color: #fed7d7;
    color: #c53030;
}

.expand-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    opacity: 0.5;
}

.tag-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.tag-details {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafbfc;
}

.tag-details.show {
    max-height: 1000px;
    padding: 20px;
}

.request-item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.request-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.request-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.method-get {
    background-color: #e6fffa;
    color: #047481;
}

.method-post {
    background-color: #fef5e7;
    color: #c96100;
}

.request-url {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #4a5568;
    word-break: break-all;
    margin-bottom: 12px;
    line-height: 1.5;
}

.request-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.request-params {
    background-color: #f7fafc;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.param-name {
    font-weight: 600;
    color: #667eea;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

/* SVG Icons */
.icon-upload {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-check {
    fill: none;
    stroke: #48bb78;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
