/* Universal Link Analyzer - Modern SEO Tool Interface */
.ula-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ula-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ula-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    text-align: center;
    color: #ffffff;
}

.ula-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
}

.ula-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.ula-form-section {
    padding: 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ula-input-wrapper {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.ula-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
}

.ula-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ula-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.ula-button-primary {
    background: #667eea;
    color: #ffffff;
}

.ula-button-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.ula-button-secondary {
    background: #10b981;
    color: #ffffff;
    font-size: 14px;
    padding: 12px 24px;
}

.ula-button-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.ula-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ula-spinner {
    display: inline-flex;
}

.ula-spinner-icon {
    width: 20px;
    height: 20px;
    animation: ula-rotate 2s linear infinite;
}

.ula-spinner-icon .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: ula-dash 1.5s ease-in-out infinite;
}

@keyframes ula-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes ula-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.ula-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px 24px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #fecaca;
    font-weight: 500;
    display: none;
}

.ula-results {
    padding: 40px;
}

.ula-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ula-stat-box {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ula-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.ula-stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.ula-stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ula-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.ula-search {
    flex: 1;
    min-width: 300px;
}

.ula-search .ula-input {
    width: 100%;
}

.ula-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
}

.ula-tab {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ula-tab.active {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ula-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ula-tab-panel {
    display: none;
}

.ula-tab-panel.active {
    display: block;
    animation: ula-fadeIn 0.3s ease;
}

@keyframes ula-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ula-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    max-height: 600px;
    overflow-y: auto;
    background: #ffffff;
}

.ula-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ula-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ula-table th {
    padding: 18px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ula-table td {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.ula-table tbody tr:hover {
    background: #f8fafc;
}

.ula-table tbody tr:last-child td {
    border-bottom: none;
}

.ula-cell-url {
    max-width: 350px;
    word-break: break-all;
}

.ula-cell-url a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ula-cell-url a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ula-cell-anchor {
    max-width: 250px;
    color: #475569;
    font-style: italic;
    word-break: break-word;
}

/* Scrollbar Styling */
.ula-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.ula-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

.ula-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.ula-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ula-header {
        padding: 32px 24px;
    }
    
    .ula-title {
        font-size: 28px;
    }
    
    .ula-subtitle {
        font-size: 16px;
    }
    
    .ula-form-section,
    .ula-results {
        padding: 24px;
    }
    
    .ula-input-wrapper {
        flex-direction: column;
    }
    
    .ula-button {
        width: 100%;
    }
    
    .ula-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ula-search {
        min-width: unset;
    }
    
    .ula-tabs {
        justify-content: center;
    }
    
    .ula-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ula-stat-number {
        font-size: 32px;
    }
    
    .ula-table th,
    .ula-table td {
        padding: 14px;
        font-size: 13px;
    }
    
    .ula-cell-url,
    .ula-cell-anchor {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .ula-summary {
        grid-template-columns: 1fr;
    }
    
    .ula-actions {
        flex-direction: column;
    }
    
    .ula-button-secondary {
        width: 100%;
    }
}