/* URL Extractor - Professional Styles */
.urlextractor-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.urlextractor-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.urlextractor-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.urlextractor-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: linkShake 2s infinite;
}

@keyframes linkShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.urlextractor-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.urlextractor-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Input Area */
.urlextractor-input-group {
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.urlextractor-label {
    font-weight: 600;
    color: var(--text);
}

.input-actions-mini {
    display: flex;
    gap: 0.5rem;
}

.mini-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.mini-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.urlextractor-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.urlextractor-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* Options Section */
.urlextractor-options {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
}

.option-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Base URL Section */
.urlextractor-baseurl {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.baseurl-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.baseurl-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.baseurl-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
}

.small-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
}

.field-hint {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Action Buttons */
.urlextractor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.primary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Results Area */
.urlextractor-results {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.result-stats {
    display: flex;
    gap: 0.8rem;
}

.stat-badge {
    background: var(--surface);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.urls-container {
    background: var(--surface);
    border-radius: 16px;
    padding: 1rem;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.urls-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

.url-text {
    flex: 1;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.url-text:hover {
    text-decoration: underline;
}

.url-actions {
    display: flex;
    gap: 0.3rem;
}

.url-copy, .url-open {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.url-copy:hover, .url-open:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.empty-message {
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.small-outline-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.small-outline-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Statistics Section */
.urlextractor-stats {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.urlextractor-stats h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Domains Table */
.urlextractor-domains {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.urlextractor-domains h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.domains-table {
    max-height: 200px;
    overflow-y: auto;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.domain-name {
    font-family: monospace;
    color: var(--text);
}

.domain-count {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Presets */
.urlextractor-presets {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg);
    border-radius: 16px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.preset-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.75rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Tip */
.urlextractor-tip {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    margin: 1rem 0;
    font-size: 0.85rem;
}

/* SEO */
.urlextractor-seo {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
}

.feature-list {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.feature-list li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Download Card */
.download-card-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

.download-card-bg-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-card-corner-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, transparent 100%);
    border-radius: 0 100px 0 0;
}

.download-card-header, .download-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.download-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.download-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-card-body {
    position: relative;
    z-index: 1;
}

.download-calculator-type {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.download-calculation {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.3rem 0;
    color: var(--text);
}

.download-result-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.download-result-value {
    color: white;
    font-weight: bold;
    word-break: break-word;
}

.download-explanation {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    margin: 0.6rem 0;
}

.download-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.download-input-item {
    background: var(--bg);
    padding: 0.4rem;
    border-radius: 8px;
    text-align: center;
}

.download-input-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-light);
}

.download-input-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.download-brand {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .urlextractor-container {
        padding: 0 1rem;
    }
    
    .urlextractor-title {
        font-size: 2rem;
    }
    
    .urlextractor-card {
        padding: 1.2rem;
    }
    
    .options-grid {
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .url-actions {
        align-self: flex-end;
    }
}