:root {
    --primary-color: #1DBF73;
    --secondary-color: #19A463;
    --text-color: #404145;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.tool-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.tool-description {
    color: #666;
    font-size: 16px;
}

.tool-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: var(--secondary-color);
}

.output-section {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 6px;
}

.output-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.titles-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.title-item {
    background: white;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-color);
}

.copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader p {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.show {
    display: flex !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .tool-container {
        margin: 10px;
        padding: 10px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
