* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

input[type="url"]:focus {
    border-color: #3498db;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    display: none;
}

.result-content {
    color: #34495e;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.copy-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    padding: 10px 16px;
    font-size: 14px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.error {
    background-color: #ffeaea;
    border-left-color: #e74c3c;
}

.success {
    background-color: #e8f6ef;
    border-left-color: #2ecc71;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.example-urls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.example-title {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.url-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.url-chip {
    padding: 6px 12px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.url-chip:hover {
    background: #d1d5ff;
    transform: translateY(-2px);
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

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

#clear-button {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}