:root {
    --primary-color: #1a73e8;
    --primary-dark: #135cbc;
    --secondary-color: #f8f9fa;
    --text-color: #202124;
    --border-color: #dadce0;
    --hover-color: #e8f0fe;
    --focus-color: #d2e3fc;
    --error-color: #d93025;
    --success-color: #188038;
    --shadow-color: rgba(60, 64, 67, 0.3);
    --font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    color: #5f6368;
    font-size: 1.1rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

textarea, 
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--focus-color);
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: #5f6368;
    margin-top: 0.25rem;
}

.icon-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#icon-input {
    width: 5rem;
    text-align: center;
    font-size: 1.5rem;
}

.favicon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.colors-section {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.color-group {
    margin-bottom: 0;
}

input[type="color"] {
    width: 3rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.emoji-selector {
    margin-bottom: 1.5rem;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.emoji-item:hover {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
}

.output-section {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.output-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.instructions {
    margin-bottom: 1rem;
    font-weight: 500;
}

.bookmarklet-container {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bookmarklet-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    cursor: move;
    transition: var(--transition);
}

.bookmarklet-link:hover {
    background-color: var(--primary-dark);
}

.instructions-detail {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.instructions-detail ol {
    margin-left: 1.5rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #5f6368;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .input-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .icon-section {
        flex-direction: column;
    }
    
    .colors-section {
        width: 100%;
    }
    
    .color-group {
        flex: 1;
    }
}

