:root {
    --utf-primary: #10b981;
    /* Emerald Green */
    --utf-primary-hover: #059669;
    --utf-bg: #f8fafc;
    --utf-glass: rgba(255, 255, 255, 0.8);
    --utf-glass-border: rgba(16, 185, 129, 0.2);
    --utf-text: #1e293b;
    --utf-text-muted: #64748b;
    --utf-card-bg: #ffffff;
}

.utf-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    font-family: 'Inter', sans-serif;
    color: var(--utf-text);
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.utf-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.utf-subtitle {
    text-align: center;
    color: var(--utf-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.utf-input-card,
.utf-output-card {
    background: var(--utf-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--utf-glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#utf-url-input {
    width: 100%;
    min-height: 150px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--utf-text);
    padding: 16px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

#utf-url-input:focus {
    border-color: var(--utf-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.utf-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

#utf-fetch-btn,
#utf-download-csv {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#utf-fetch-btn {
    background: var(--utf-primary);
    color: white;
}

#utf-fetch-btn:hover {
    background: var(--utf-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

#utf-download-csv {
    background: #ffffff;
    color: var(--utf-primary);
    border: 1px solid var(--utf-primary);
}

#utf-download-csv:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

#utf-results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#utf-results-table th {
    padding: 12px 16px;
    color: var(--utf-text-muted);
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

#utf-results-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.utf-url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--utf-text-muted);
}

.utf-title-cell {
    font-weight: 500;
    color: #0f172a;
}

.status-loading {
    color: var(--utf-primary);
    font-style: italic;
}

.status-error {
    color: #ef4444;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.utf-row {
    animation: fadeInSlide 0.4s ease forwards;
}