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

body {
    background-color #4C0B13;
    color:  #5E1914;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 24px;
    color: #6D1F1A;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #bb86fc;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover {
    color: #bb86fc;
}

.nav a.active {
    color: #bb86fc;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #bb86fc;
}

.user i {
    font-size: 20px;
    cursor: pointer;
    color: #e0e0e0;
    transition: color 0.3s;
}

.user i:hover {
    color: #bb86fc;
}

/* Conteúdo Principal */
.main-content {
    min-height: 70vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    margin-bottom: 20px;
    color: #bb86fc;
    font-size: 24px;
}

/* Seção Guarda-Roupa */
.wardrobe-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

#create-look-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#create-look-btn:hover {
    background-color: #9a67ea;
}

.search-wardrobe {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}

.search-wardrobe input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 5px 0 0 5px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    outline: none;
}

.search-wardrobe button {
    padding: 0 15px;
    background-color: #333;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-wardrobe button:hover {
    background-color: #444;
}

.wardrobe-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category h3 {
    margin-bottom: 15px;
    color: #bb86fc;
    font-size: 18px;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Seção Looks Recomendados */
.look-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.look-filters select {
    padding: 8px 12px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    outline: none;
}

.looks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.look-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.look-card:hover {
    transform: translateY(-5px);
}

.look-image {
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.look-details {
    padding: 15px;
}

.look-details h3 {
    margin-bottom: 5px;
    color: #e0e0e0;
}

.look-details p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.look-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.look-tag {
    background-color: #333;
    color: #bb86fc;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* Seção Pesquisar Roupas */
.search-bar {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    outline: none;
}

#search-clothing-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-clothing-btn:hover {
    background-color: #9a67ea;
}

.store-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.store-tab {
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 5px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.store-tab.active {
    background-color: #bb86fc;
    color: #121212;
    border-color: #bb86fc;
}

.store-tab:hover:not(.active) {
    background-color: #333;
}

.search-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filters select {
    padding: 8px 12px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    outline: none;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.clothing-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.clothing-item:hover {
    transform: translateY(-5px);
}

.clothing-image {
    height: 180px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    position: relative;
}

.clothing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clothing-details {
    padding: 15px;
}

.clothing-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.clothing-details p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.clothing-price {
    color: #bb86fc !important;
    font-weight: 600;
}

.add-to-wardrobe {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.add-to-wardrobe:hover {
    background-color: #9a67ea;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e0e0e0;
}

.modal h3 {
    margin-bottom: 20px;
    color: #bb86fc;
}

.modal-item-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-item-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h4 {
    color: #e0e0e0;
    margin-bottom: 5px;
}

.item-details p {
    color: #888;
    font-size: 14px;
    margin-bottom: 3px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    outline: none;
}

.form-group select[multiple] {
    height: 100px;
}

#confirm-add-item,
#save-look-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

#confirm-add-item:hover,
#save-look-btn:hover {
    background-color: #9a67ea;
}

/* Look Builder */
.look-builder {
    display: flex;
    gap: 20px;
}

.look-preview {
    flex: 1;
    background-color: #333;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.look-item {
    background-color: #1e1e1e;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    position: relative;
}

.look-item span {
    position: relative;
    z-index: 1;
}

.look-item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
    z-index: 0;
}

.look-options {
    flex: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .wardrobe-actions {
        flex-direction: column;
    }
    
    .search-wardrobe {
        max-width: 100%;
    }
    
    .look-builder {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
    }
    
    .store-tabs {
        flex-wrap: wrap;
    }
    
    .search-filters {
        flex-direction: column;
    }
}
