* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #6b4d6d;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-in;
}

.header h1 {
    font-size: 2.5rem;
    color: #be185d;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.header p {
    color: #be185d;
    font-size: 1.1rem;
    opacity: 0.9;
}

.profile-pic-container {
    margin: 1rem 0;
}

.profile-pic-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #be185d;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.2);
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.15);
    border: 2px solid #fbcfe8;
}

.filter-section h3 {
    color: #be185d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.price-filter label {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
    color: #6b4d6d;
    font-weight: 600;
}

.price-filter input[type="range"] {
    flex: 1;
    min-width: 200px;
    height: 8px;
    border-radius: 5px;
    background: #fbcfe8;
    outline: none;
    -webkit-appearance: none;
}

.price-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(190, 24, 93, 0.3);
}

.price-filter input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(190, 24, 93, 0.3);
}

#priceValue {
    font-weight: bold;
    color: #be185d;
}

.reset-btn {
    padding: 0.6rem 1.2rem;
    background: #fbcfe8;
    color: #be185d;
    border: 2px solid #be185d;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #be185d;
    color: white;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.item-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #fbcfe8;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.25);
    border-color: #be185d;
}

.item-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

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

.item-title {
    font-size: 1.3rem;
    color: #be185d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #6b4d6d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-priority {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.priority-high {
    background: #fbcfe8;
    color: #be185d;
}

.priority-medium {
    background: #fce7f3;
    color: #d946a6;
}

.priority-low {
    background: #fdf2f8;
    color: #ec4899;
}

.item-price {
    font-size: 1.5rem;
    color: #be185d;
    font-weight: 700;
    margin-bottom: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.more-info-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.more-info-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(190, 24, 93, 0.3);
}

/* Modal expandido */
.expanded-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.expanded-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(190, 24, 93, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

.expanded-content .close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #be185d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expanded-content .close:hover {
    transform: scale(1.2);
    color: #d946a6;
}

.expanded-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.expanded-title {
    font-size: 2rem;
    color: #be185d;
    margin-bottom: 0.5rem;
}

.expanded-price {
    font-size: 1.8rem;
    color: #d946a6;
    font-weight: 700;
    margin-bottom: 1rem;
}

.expanded-description {
    color: #6b4d6d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.shop-links-section {
    margin-top: 2rem;
}

.shop-links-section h4 {
    color: #be185d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.shop-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: #fce7f3;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.shop-link-item:hover {
    background: #fbcfe8;
    transform: translateX(5px);
}

.shop-link-item a {
    color: #be185d;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
}

.shop-link-item a:hover {
    color: #d946a6;
}

.shop-link-icon {
    color: #be185d;
    margin-left: 0.5rem;
}

.item-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.link-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(190, 24, 93, 0.3);
}

.link-btn a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.add-item-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.15);
    border: 2px dashed #fbcfe8;
    margin-bottom: 2rem;
}

.add-item-section h2 {
    color: #be185d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #be185d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #6b4d6d;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #be185d;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.add-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.3);
}

.footer {
    text-align: center;
    color: #be185d;
    font-size: 0.95rem;
    margin-top: 3rem;
    padding: 1rem;
    opacity: 0.8;
}

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

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #be185d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.admin-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #be185d 0%, #d946a6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.admin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(190, 24, 93, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 12px 40px rgba(190, 24, 93, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: #be185d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #be185d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
    color: #d946a6;
}

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