* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #2c2c2c;
    color: #e8eaed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo {
    margin-bottom: 28px;
}

.logo h1 {
    font-size: 92px;
    font-weight: 400;
    letter-spacing: -2px;
    color: #e8eaed;
}

/* Barra de Pesquisa */
.search-container {
    width: 100%;
    max-width: 584px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #3c3c3c;
    border: 1px solid #5f6368;
    border-radius: 24px;
    padding: 0 20px;
    height: 46px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.search-box:hover {
    background: #3c3c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.search-box:focus-within {
    background: #3c3c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.search-icon {
    margin-right: 14px;
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e8eaed;
    font-size: 16px;
    padding: 0;
}

#searchInput::placeholder {
    color: #9aa0a6;
}

.mic-icon,
.lens-icon {
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.mic-icon:hover,
.lens-icon:hover {
    opacity: 0.7;
}

/* Campo de Pesquisa de Atalhos */
.search-shortcuts-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
}

#searchShortcuts {
    width: 100%;
    padding: 12px 16px;
    background: #3c3c3c;
    border: 1px solid #5f6368;
    border-radius: 8px;
    color: #e8eaed;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

#searchShortcuts:hover {
    border-color: #8ab4f8;
}

#searchShortcuts:focus {
    border-color: #8ab4f8;
    background: #404040;
}

#searchShortcuts::placeholder {
    color: #9aa0a6;
}

/* Grid de Atalhos */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3c3c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.shortcut-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shortcut-icon.emoji {
    font-size: 28px;
}

.shortcut-name {
    font-size: 13px;
    color: #e8eaed;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Botão Adicionar */
.shortcut-item.add-shortcut .shortcut-icon {
    background: transparent;
    border: 2px dashed #5f6368;
    font-size: 30px;
    color: #9aa0a6;
}

.shortcut-item.add-shortcut:hover .shortcut-icon {
    border-color: #9aa0a6;
}

.shortcut-item.add-shortcut .shortcut-name {
    color: #9aa0a6;
}

/* Menu de Contexto */
.context-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3c3c3c;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.shortcut-item:hover .context-menu {
    display: flex;
}

.context-menu:hover {
    background: #4c4c4c;
}

.context-menu svg {
    width: 18px;
    height: 18px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #3c3c3c;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #5f6368;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #5f6368;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 400;
    color: #e8eaed;
}

.close-btn {
    background: transparent;
    border: none;
    color: #9aa0a6;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e8eaed;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #2c2c2c;
    border: 1px solid #5f6368;
    border-radius: 4px;
    color: #e8eaed;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:hover {
    border-color: #8ab4f8;
}

.form-group input:focus {
    border-color: #8ab4f8;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9aa0a6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #5f6368;
}

.btn-cancel,
.btn-remove,
.btn-save {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel {
    background: transparent;
    color: #8ab4f8;
}

.btn-cancel:hover {
    background: rgba(138, 180, 248, 0.08);
}

.btn-remove {
    background: #ea4335;
    color: #fff;
}

.btn-remove:hover {
    background: #d33b2c;
}

.btn-save {
    background: #8ab4f8;
    color: #202124;
    font-weight: 500;
}

.btn-save:hover {
    background: #aecbfa;
}

/* Responsivo */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 56px;
    }

    .shortcuts-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 14px;
    }

    .search-container {
        max-width: 100%;
    }
}
