.tool-container {
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.results-section.hidden {
    display: none;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.card-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.result-card h3 {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.card-content {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #6b7280;
}

.raw-data-section {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    color: #fff;
}

.raw-data-section h3 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.tool-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.tool-info {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
    color: #4b5563;
}

.tool-info h2 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.tool-info h3 {
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}

.tool-info ul {
    padding-left: 1.5rem;
}

.tool-info li {
    margin-bottom: 0.5rem;
}