body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.configurator-main {
    flex: 1;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Header Simples */
.simple-header {
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.simple-header .logo img {
    height: 40px;
    display: block;
    transition: var(--transition);
}

.simple-header .logo:hover img {
    opacity: 0.8;
}

/* Footer Simples */
.simple-footer {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
}

.simple-footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.config-header {
    text-align: center;
    margin-bottom: 50px;
}

.config-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.config-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.config-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.config-card {
    background-color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.config-card.active {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(90, 95, 200, 0.4);
    background-color: rgba(90, 95, 200, 0.05);
    transform: scale(1.02);
}

.card-img-wrapper {
    flex: 0 0 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.config-card.active .card-img-wrapper img {
    transform: scale(1.1);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Custom Select Nativo Premium */
.config-select-wrapper {
    margin-top: auto;
    position: relative;
    width: 100%;
}

.config-select {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 12px 35px 12px 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A5FC8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.config-select:focus,
.config-select:hover {
    border-color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(90, 95, 200, 0.15);
}

.config-select option {
    background-color: var(--card-color);
    color: var(--text-color);
    padding: 10px;
}

/* Botão Gravar */
.save-actions {
    display: flex;
    justify-content: flex-end;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.btn-save, .btn-refresh-secondary {
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-save:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.btn-refresh-secondary {
    background-color: transparent;
    color: var(--text-dim);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-refresh-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .config-cards-grid {
        grid-template-columns: 1fr;
    }
    .config-card {
        flex-direction: column;
        text-align: center;
    }
    .card-img-wrapper {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }
}
