:root {
    --primary-color: #5c6bc0;
    --primary-light: #8e99f3;
    --primary-dark: #26418f;
    --secondary-color: #ff7043;
    --secondary-light: #ffa270;
    --secondary-dark: #c63f17;
    --accent-color: #4CAF50;
    --accent-light: #7CDA81;
    --accent-dark: #2E7031;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --success-color: #4caf50;
    --info-color: #2196F3;
    --background-color: #f5f7fa;
    --surface-color: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.75rem;
}

.search-bar {
    position: relative;
    flex: 1;
    margin: 0 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 0.25rem;
    z-index: 10;
}

.search-suggestions ul {
    padding: 0.5rem 0;
}

.search-suggestions li {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestions li:hover {
    background-color: rgba(92, 107, 192, 0.1);
}

.search-suggestions i {
    position: static;
    transform: none;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.notification {
    position: absolute;
    top: 0;
    right: 0.5rem;
    background-color: var(--error-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 50%;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user-avatar svg {
    width: 100%;
    height: 100%;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 100;
}

.menu-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: rgba(92, 107, 192, 0.1);
}

.menu-item i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

/* Home Section */
.home-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 1.5rem;
}

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 5rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sidebar-section {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-section ul li {
    padding: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.sidebar-section ul li:hover {
    color: var(--primary-color);
}

.sidebar-section ul li i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.create-post {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.post-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.post-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--background-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-actions button i {
    margin-right: 0.5rem;
}

.post-actions button:hover {
    background-color: var(--primary-light);
    color: white;
}

.feed-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.feed-filter button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.feed-filter button.active, .feed-filter button:hover {
    background-color: var(--primary-color);
    color: white;
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-item {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.item-options {
    position: relative;
    cursor: pointer;
}

.item-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 100;
}

.option-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.option-item:hover {
    background-color: rgba(92, 107, 192, 0.1);
}

.option-item i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.item-content {
    margin-bottom: 1rem;
}

.item-content p {
    margin-bottom: 1rem;
}

.item-image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    transition: transform 0.5s ease;
}

.feed-item:hover .item-image {
    transform: scale(1.1);
}

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

.price-tag, .condition-tag, .exchange-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.price-tag {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
}

.condition-tag {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.exchange-tag {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--background-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.action-btn:active::after {
    height: 400%;
    opacity: 1;
    transition: all 0.6s ease;
}

.action-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.action-btn.heart-btn {
    color: var(--text-secondary);
}

.action-btn.heart-btn.active {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.action-btn.heart-btn.active:hover {
    background-color: var(--error-color);
    color: white;
}

.action-btn.heart-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 5rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-left: 0.5rem;
}

.wallet-card {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
}

.wallet-balance {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    flex: 1;
}

.balance-item i {
    font-size: 1.5rem;
}

.balance-item h4 {
    margin: 0;
    font-size: 1.25rem;
}

.balance-item span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.wallet-btn, .calendar-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.wallet-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.calendar-btn {
    background-color: var(--primary-color);
    color: white;
}

.calendar-btn:hover {
    background-color: var(--primary-dark);
}

.upcoming-appointments {
    margin-bottom: 1rem;
}

.appointment-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background-color: rgba(92, 107, 192, 0.1);
    margin-bottom: 0.75rem;
}

.appointment-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.appointment-details h4 {
    margin: 0;
    font-size: 0.95rem;
}

.appointment-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.suggested-products {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggested-product {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.suggested-product:hover {
    background-color: rgba(92, 107, 192, 0.1);
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.25rem;
}

.product-details h4 {
    margin: 0;
    font-size: 0.9rem;
}

.product-price {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.modal-content {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body {
    padding: 1.25rem;
}

.post-type-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.post-type-selector button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: transparent;
    transition: var(--transition);
}

.post-type-selector button i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.post-type-selector button.active {
    border-color: var(--primary-color);
    background-color: rgba(92, 107, 192, 0.1);
}

.post-type-selector button.active i,
.post-type-selector button.active span {
    color: var(--primary-color);
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

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

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(92, 107, 192, 0.05);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-area span {
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.cancel-btn:hover {
    background-color: var(--background-color);
}

.publish-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.publish-btn:hover {
    background-color: var(--primary-dark);
}

/* Other Sections */
.other-section {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.other-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home-container {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

@media (max-width: 992px) {
    .home-container {
        grid-template-columns: 1fr 2fr;
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        display: none;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo span {
        display: none;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 5px;
    }
    
    .search-bar {
        margin: 0 0.5rem;
    }
    
    .post-actions button span {
        display: none;
    }
    
    .item-actions button span {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0 1rem;
    }
    
    .feed-item {
        padding: 1rem;
    }
    
    .item-image {
        height: 200px;
    }
    
    .post-type-selector {
        flex-wrap: wrap;
    }
    
    .post-type-selector button {
        min-width: calc(50% - 0.375rem);
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
}

/* Improved tablet responsiveness */
@media (max-width: 992px) and (min-width: 769px) {
    .home-container {
        grid-template-columns: 230px 1fr;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .marketplace-container {
        grid-template-columns: 200px 1fr;
    }
}

/* Better mobile styles */
@media (max-width: 768px) {
    .nav-item {
        padding: 5px;
    }
    
    .nav-item i {
        margin-bottom: 0;
    }
    
    .feed-item {
        padding: 1rem;
    }
    
    .item-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-image {
        height: 180px;
    }
    
    .item-actions {
        justify-content: space-between;
    }
    
    .action-btn {
        padding: 0.4rem;
    }
    
    .wallet-balance {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
}

/* Empty state styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.primary-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Better card animations */
.product-card, .store-product, .analytics-card, .wallet-action-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .store-product:hover, .analytics-card:hover, .wallet-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Marketplace */
.marketplace-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

.marketplace-sidebar {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    height: fit-content;
}

.marketplace-categories {
    margin-bottom: 1.5rem;
}

.marketplace-categories h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover, .category-item.active {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
}

.marketplace-filters {
    margin-bottom: 1.5rem;
}

.marketplace-filters h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.filter-group h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.marketplace-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marketplace-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.marketplace-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.marketplace-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.marketplace-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-toggle button {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.view-toggle button.active {
    background-color: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 160px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-list-item {
    display: flex;
    gap: 1rem;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-list-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

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

.product-list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-list-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.product-list-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-list-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-list-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-list-actions {
    display: flex;
    gap: 0.5rem;
}

.product-list-actions button {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    background-color: var(--background-color);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
}

.product-list-actions button:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Wallet / Billetera */
.wallet-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.balance-card-number {
    font-size: 0.9rem;
    opacity: 0.8;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.balance-details {
    display: flex;
    gap: 1.5rem;
}

.balance-detail {
    display: flex;
    flex-direction: column;
}

.balance-detail-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.balance-detail-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wallet-action-btn {
    padding: 1rem;
    background-color: var(--surface-color);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.wallet-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.wallet-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.wallet-action-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.transactions-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.transactions-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.transactions-filter select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.transaction-item:hover {
    background-color: rgba(92, 107, 192, 0.05);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 500;
}

.transaction-amount.deposit, .transaction-amount.sale {
    color: var(--success-color);
}

.transaction-amount.withdraw, .transaction-amount.purchase {
    color: var(--error-color);
}

.wallet-stats {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.wallet-stats-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 500;
}

.stat-bar {
    height: 6px;
    background-color: var(--background-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background-color: var(--primary-color);
}

/* Profile / Perfil */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar svg {
    width: 100%;
    height: 100%;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-bio {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.profile-member-since {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-buttons {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.profile-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.profile-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.profile-btn.primary:hover {
    background-color: var(--primary-dark);
}

.profile-btn.secondary {
    background-color: var(--background-color);
    color: var(--text-secondary);
}

.profile-btn.secondary:hover {
    background-color: var(--border-color);
}

.profile-skills {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.profile-skills-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-nav {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.profile-nav-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.profile-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.profile-nav-item:hover:not(.active) {
    background-color: var(--background-color);
}

.profile-section {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.profile-section-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.add-btn:hover {
    background-color: var(--primary-dark);
}

.experience-item, .education-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child, .education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-header, .education-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.experience-title, .education-title {
    font-weight: 500;
    font-size: 1rem;
}

.experience-period, .education-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.experience-company, .education-school {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.experience-description, .education-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Store / Tienda */
.store-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.store-header {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.store-banner {
    height: 160px;
    position: relative;
}

.store-banner-edit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.store-banner-edit:hover {
    background-color: white;
}

.store-info {
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.store-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--surface-color);
    margin-top: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
}

.store-logo-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: white;
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.store-logo-edit:hover {
    background-color: var(--background-color);
}

.store-details {
    flex: 1;
}

.store-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.store-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.store-metrics {
    display: flex;
    gap: 1.5rem;
}

.store-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.store-metric i {
    color: var(--primary-color);
}

.store-actions {
    display: flex;
    gap: 0.75rem;
}

.store-action {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.store-action.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.store-action.primary:hover {
    background-color: var(--primary-dark);
}

.store-action.secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.store-action.secondary:hover {
    background-color: var(--background-color);
}

.store-navigation {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.store-nav-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.store-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.store-nav-item:hover:not(.active) {
    background-color: var(--background-color);
}

.store-section {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.store-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.store-product {
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.store-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.store-product-image {
    height: 160px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
}

.store-product-info {
    padding: 1rem;
}

.store-product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.store-product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.store-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.store-product-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.store-product-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.store-product-actions {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.store-product-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.store-product-btn.edit {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
    border: none;
}

.store-product-btn.edit:hover {
    background-color: var(--primary-color);
    color: white;
}

.store-product-btn.delete {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: none;
}

.store-product-btn.delete:hover {
    background-color: var(--error-color);
    color: white;
}

.store-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.analytics-card {
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.analytics-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.analytics-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.analytics-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.revenue-chart {
    margin-bottom: 1.5rem;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.store-team {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.team-member:hover {
    background-color: var(--background-color);
}

.team-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.team-info {
    flex: 1;
}

.team-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.team-actions {
    display: flex;
    gap: 0.5rem;
}

.team-action-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.team-action-btn:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Calendar / Agenda */
.calendar-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
}

.calendar-main {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.calendar-view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.calendar-view-toggle button {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.calendar-view-toggle button.active {
    background-color: var(--primary-color);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.calendar-day {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    min-height: 100px;
}

.calendar-day-number {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendar-day.today {
    background-color: rgba(92, 107, 192, 0.05);
}

.calendar-day.today .calendar-day-number {
    color: var(--primary-color);
}

.calendar-day.other-month {
    opacity: 0.5;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.calendar-event {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event.virtual {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
}

.calendar-event.in_person {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.calendar-event:hover {
    filter: brightness(0.95);
}

.upcoming-events {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.upcoming-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.upcoming-events-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-event {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.upcoming-event:hover {
    background-color: var(--background-color);
}

.event-date {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.event-date i {
    color: var(--primary-color);
}

.event-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-with {
    font-weight: 500;
}

/* Messages / Mensajes */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 70vh;
}

.chat-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.chat-search {
    position: relative;
}

.chat-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.chat-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.chat-contacts {
    flex: 1;
    overflow-y: auto;
}

.chat-contact {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.chat-contact.active {
    background-color: rgba(92, 107, 192, 0.05);
}

.chat-contact:hover:not(.active) {
    background-color: var(--background-color);
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    position: relative;
}

.contact-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--success-color);
    border: 2px solid var(--surface-color);
}

.contact-unread {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.contact-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-weight: 500;
}

.chat-header-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-header-actions {
    display: flex;
    gap: 0.75rem;
}

.chat-header-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.chat-header-btn:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
}

.message.them {
    align-self: flex-start;
    background-color: var(--background-color);
}

.message.me {
    align-self: flex-end;
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-dark);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: absolute;
    bottom: 0.35rem;
    right: 0.75rem;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input-field {
    flex: 1;
    position: relative;
}

.chat-input-field textarea {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition);
    resize: none;
    height: 2.5rem;
    max-height: 6rem;
    overflow-y: auto;
}

.chat-input-actions {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.chat-input-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input-btn:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.chat-send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background-color: var(--primary-dark);
}

.mobile-chat-view {
    display: none;
}

/* Jobs / Empleos */
.jobs-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.jobs-sidebar {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    height: fit-content;
}

.jobs-filters {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.auth-btn {
    margin: 10px;
    border: none;
    padding: 5px 10px;
    color: #fff;
    border-radius: 3px;
}

.register-btn {
    background-color: #3579ce;
}
.login-btn {
    background-color: #2eb939;
}

.jobs-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jobs-filter-title {
    font-weight: 500;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-option input {
    margin: 0;
}

.filter-range label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-range input {
    width: 100%;
}

.jobs-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jobs-header {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jobs-count {
    font-weight: 500;
}

.jobs-count span {
    color: var(--primary-color);
}

.jobs-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.jobs-sort select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.job-logo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.job-content {
    flex: 1;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.job-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-posted {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.job-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.job-detail i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.job-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-actions {
    display: flex;
    gap: 0.75rem;
}

.job-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.job-btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.job-btn.primary:hover {
    background-color: var(--primary-dark);
}

.job-btn.secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.job-btn.secondary:hover {
    background-color: var(--background-color);
}

/* Trueques */
.trueques-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trueques-tabs {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.trueque-tab {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trueque-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.trueque-tab:hover:not(.active) {
    background-color: var(--background-color);
}

.trueque-tab .count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.trueque-tab:not(.active) .count {
    background-color: var(--primary-color);
    color: white;
}

.trueques-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trueque-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.trueque-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trueque-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.trueque-user {
    flex: 1;
}

.trueque-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.trueque-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trueque-status {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.status-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.status-info {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.status-primary {
    background-color: rgba(92, 107, 192, 0.1);
    color: var(--primary-color);
}

.trueque-items {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.trueque-items::after {
    content: 'por';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--surface-color);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.trueque-items::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.trueque-item {
    flex: 1;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    z-index: 1;
}

.trueque-item-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.trueque-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trueque-action {
    text-align: center;
}

.trueque-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.trueque-info p {
    margin-bottom: 0.5rem;
}

.trueque-info strong {
    color: var(--text-primary);
}

.trueque-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.trueque-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.trueque-btn.accept {
    background-color: var(--success-color);
    color: white;
    border: none;
}

.trueque-btn.accept:hover {
    background-color: #3d8b40;
}

.trueque-btn.reject {
    background-color: var(--error-color);
    color: white;
    border: none;
}

.trueque-btn.reject:hover {
    background-color: #c62828;
}

.trueque-btn.contact {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.trueque-btn.contact:hover {
    background-color: var(--primary-dark);
}

.trueque-btn.secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.trueque-btn.secondary:hover {
    background-color: var(--background-color);
}

/* Orders / Pedidos */
.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.orders-header {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.orders-search {
    position: relative;
    width: 300px;
}

.orders-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.orders-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.orders-filters {
    display: flex;
    gap: 0.75rem;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem;
}

.order-filter {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.order-filter:hover:not(.active) {
    background-color: var(--background-color);
}

.order-filter .count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.order-filter:not(.active) .count {
    background-color: var(--primary-color);
    color: white;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-id {
    font-weight: 500;
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-status {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.order-item-price {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-detail {
    flex: 1;
    min-width: 200px;
}

.order-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.order-detail-value {
    font-weight: 500;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.order-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.order-btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.order-btn.primary:hover {
    background-color: var(--primary-dark);
}

.order-btn.secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.order-btn.secondary:hover {
    background-color: var(--background-color);
}

/* Settings / Configuración */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

.settings-sidebar {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    height: fit-content;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.settings-nav-item:hover:not(.active) {
    background-color: var(--background-color);
}

.settings-main {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.settings-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    font-weight: 500;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.setting-control input[type="text"],
.setting-control input[type="email"],
.setting-control input[type="password"],
.setting-control select {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.settings-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.settings-btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.settings-btn.primary:hover {
    background-color: var(--primary-dark);
}

.settings-btn.secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.settings-btn.secondary:hover {
    background-color: var(--background-color);
}



/* Estilos para los comentarios */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment .user-avatar {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.comment-info h4 {
    margin: 0;
    font-size: 14px;
}

.comment-info span {
    font-size: 12px;
    color: #666;
}

.comment-text {
    margin: 0;
    font-size: 14px;
}

.comment-form {
    padding: 15px;
    border-top: 1px solid #eee;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.comment-form button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilos para las opciones de compartir */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn i {
    margin-right: 8px;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.telegram { background-color: #0088cc; }
.share-btn.copy { background-color: #6c757d; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .profile-container,
    .store-container,
    .calendar-container,
    .messages-container,
    .jobs-container,
    .settings-container,
    .wallet-container,
    .marketplace-container {
        /* grid-template-columns: 1fr; */
    }

    .logo {
        margin-right: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 46.5%);
    }

    .feed-filter {
        display: grid;
        grid-template-columns: repeat(3, calc(33% - 20px));
    }

    .create-post {
        padding: 10px;
    }

    .post-actions {
        width: fit-content;
    }

    .post-actions button {
        padding: 10px 20px;
    }

    .marketplace-header {
        flex-direction: column;
    }

    .marketplace-sidebar div h3 {
        border: 2px solid #3d3d3d;
        padding: 10px 20px;
        border-radius: 5px;
        color: #fff;
        background-color: #7299b7;
    }

    .marketplace-categories:hover > .category-list, .marketplace-categories:hover > .category-list div, .marketplace-categories:hover > .category-list span {
        display: block;
    }

    .marketplace-sidebar {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .marketplace-container {
        grid-template-columns: unset;
    }

    
    .profile-sidebar, .settings-sidebar {
        margin-bottom: 1.5rem;
        position: absolute;
        width: 200px;
    }

    .profile-sidebar div > :not(:first-child),
    .settings-sidebar div > :not(:first-child),
    .marketplace-sidebar div > :not(:first-child) {
        display: none;
    }
    
    .calendar-main {
        margin-bottom: 1.5rem;
    }
    
    .chat-sidebar {
        width: 100%;
    }
    
    .messages-container {
        height: auto;
    }
    
    .mobile-chat-view {
        display: block;
    }
    
    .chat-sidebar {
        display: block;
    }
    
    .chat-main {
        display: none;
    }
    
    .mobile-chat-view .chat-sidebar {
        display: none;
    }
    
    .mobile-chat-view .chat-main {
        display: flex;
    }
    
    .back-to-contacts {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background-color: transparent;
        border: none;
        color: var(--text-secondary);
        font-weight: 500;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .wallet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-metrics,
    .store-actions {
        flex-wrap: wrap;
    }
    
    .store-analytics {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .calendar-day-header {
        display: none;
    }
    
    .calendar-day {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .calendar-day-number {
        align-self: flex-start;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .orders-search {
        width: 100%;
    }
    
    .orders-filters {
        overflow-x: auto;
        width: 100%;
    }
    
    .trueque-items {
        flex-direction: column;
    }
    
    .trueque-items::after {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
    
    .trueque-items::before {
        height: 100%;
        width: 1px;
        top: 0;
        left: 50%;
        right: auto;
    }
}

@media (max-width: 576px) {
    .wallet-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-buttons,
    .store-actions,
    .job-actions,
    .trueque-actions,
    .order-actions,
    .settings-actions {
        flex-direction: column;
    }
    
    .job-details,
    .order-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .profile-stats {
        flex-wrap: wrap;
    }
    
    .profile-stat {
        flex: 1;
        min-width: 80px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.btn-demo {
    background-color: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.btn-demo:hover {
    background-color: var(--primary-dark);
}







.product-actions {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.add-to-cart-btn,
.exchange-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-to-cart-btn {
    background-color: #4CAF50;
    color: white;
}

.exchange-btn {
    background-color: #2196F3;
    color: white;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.exchange-modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content {
    padding: 20px;
}

.selected-product,
.exchange-offer {
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-btn,
.submit-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.cart-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 2px;
    position: fixed;
    width: 70%;
}

button.open-cart-btn {
    padding: 8px;
    transform: scale(1.2);
    border-radius: 2px;
    border: none;
    background-color: #6886d9;
    color: #fff;
}

button.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 8px;
    border-radius: 3px;
    border: none;
    background-color: #e42626;
    color: #fff;
}

span.cart-count {
    background-color: #f00;
    padding: 1px 7px;
    border-radius: 50%;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90% 5%;
    padding: 2%;
    margin-bottom: 10px;
}

button.remove-item {
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border: none;
    border-radius: 2px;
    color: #fff;
    background-color: #c92a2a;
}


/* NEW CALENDAR/CALENDARIO */


.calendar-section {
    padding: 20px;
}
  
.calendar-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
  
.calendar-main {
    padding: 20px;
}
  
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
  
.calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}
  
.calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}
  
.calendar-view-toggle {
    display: flex;
    gap: 5px;
}
  
.calendar-view-toggle button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
}
  
.calendar-view-toggle button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
  
.upcoming-events {
    padding: 20px;
    border-left: 1px solid #ddd;
}
  
.upcoming-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
  
.add-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
  
.upcoming-event {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}
  
.event-date {
    color: #666;
    font-size: 0.9em;
}
  
.event-title {
    margin: 5px 0;
}
  
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
}
  
.form-group {
    margin-bottom: 15px;
}
  
.error {
    color: red;
    font-size: 0.9em;
}
  
  /* Estilos para los tipos de eventos */
.event-delivery {
    background: #4CAF50 !important;
    color: white;
}
  
.event-virtual {
    background: #2196F3 !important;
    color: white;
}
  
.event-in_person {
    background: #FF9800 !important;
    color: white;
}


  /* New */
.notifications-panel {
    position: absolute;
    top: 60px; right: 30px;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 1000;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.notifications-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #eee;
    font-weight: 600;
}
.notifications-filters {
    display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #eee;
    overflow-x: auto;
}
.notifications-filters button {
    background: none; border: none; padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-size: 0.95em; color: #555;
    transition: background 0.2s;
}
.notifications-filters button.active, .notifications-filters button:hover {
    background: #f0f4fa; color: #3498db;
}
.notifications-list {
    max-height: 320px; overflow-y: auto; padding: 10px 0;
}
.notification-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 0.98em; border-bottom: 1px solid #f5f5f5;
}
.notification-item i { min-width: 22px; }
.notification-time { margin-left: auto; font-size: 0.85em; color: #aaa; }
.no-notifications {
    text-align: center; color: #aaa; padding: 30px 0;
}
.close-btn {
    background: none; border: none; font-size: 1.3em; cursor: pointer; color: #888;
}



.admin-actions { margin-bottom: 16px; }
.add-btn { background: #3498db; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.products-table { width: 100%; border-collapse: collapse; }
.products-table th, .products-table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.products-table th { background: #f8f8f8; }
.edit-btn, .delete-btn { background: none; border: none; cursor: pointer; margin: 0 4px; }
.status.active { color: #27ae60; font-weight: bold; }
.status.inactive { color: #e67e22; font-weight: bold; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; padding: 24px; border-radius: 8px; min-width: 320px; max-width: 90vw; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-message.success { color: #27ae60; margin-bottom: 12px; }
.admin-message.error { color: #e74c3c; margin-bottom: 12px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.example-products {
  text-align: center;
  margin-top: 32px;
}
.example-row {
  background: #f8f8f8;
  color: #888;
}













/* Admin */
#user-section h2 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

#product-form-section h3,
#product-list-section h3,
#statistics-section h3 {
    background: linear-gradient(90deg,#56ccf2 50%,#2f80ed);
    color: #fff;
    padding: 0.6rem 1rem;
    margin: 0 -2.5rem 1.2rem -2.5rem;
    border-radius: 11px 11px 0 0;
    font-size: 1.18rem;
    box-shadow: 0 2px 12px #2980b912;
    letter-spacing: 0.01em;
}

/* BIG BOTÓN AGREGAR PRODUCTO */
#open-product-form-modal.big-blue-btn {
    background: linear-gradient(90deg, #2f80ed 60%, #56ccf2 150%);
    color: #fff;
    font-size: 1.22em;
    font-weight: 600;
    border: none;
    border-radius: 11px;
    outline: none;
    padding: 1rem 2.2rem;
    margin: 1.2rem auto;
    box-shadow: 0 4px 18px #2f80ed16;
    cursor: pointer;
    display: block;
    transition: background .13s, filter .12s;
    letter-spacing:.03em;
}
#open-product-form-modal.big-blue-btn:hover {
    filter: brightness(1.09);
    background: linear-gradient(90deg, #56ccf2 40%, #2f80ed 100%);
}

#product-form-section .form-editing #open-product-form-modal {
    filter: blur(0.6px) grayscale(0.5) opacity(.6);
    pointer-events: none;
}

#product-form { /* OCULTO, solo vive en modal */
    background: none;
    border: none;
    border-radius: 9px;
    padding: .1rem;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    align-items: flex-start;
}
#product-form label {
    display: block;
    flex: 1 1 220px;
    min-width: 190px;
    font-weight: 500;
    color: #355777;
    margin-bottom: 0.2rem;
}
#product-form input[type="text"],
#product-form input[type="number"] {
    width: 92%;
    padding: 0.36rem 0.75rem;
    margin-top: 0.3rem;
    border-radius: 5px;
    border: 1.2px solid #c4dffc;
    font-size: 1rem;
    background: #eaf4fa;
    transition: border 0.2s;
}
#product-form input[type="text"]:focus,
#product-form input[type="number"]:focus {
    border-color: #6dd5fa;
    outline: none;
    background: #fafdff;
}
#product-form input[type="file"] {
    margin-left: 0;
    background: none;
    border: none;
    font-size: .97rem;
}
#save-product-btn, #cancelEditBtn, #closeProductFormModal {
    padding: 0.5em 1.3em;
    border-radius: 1.2em;
    background: linear-gradient(to right,#2f80ed 60%,#56ccf2 150%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    margin: 1rem 1em 0 0;
    cursor: pointer;
    box-shadow: 0 2px 12px #2f80ed17;
    transition: background .15s, filter 0.15s;
}
#save-product-btn:hover, #cancelEditBtn:hover, #closeProductFormModal:hover {
    filter: brightness(1.10);
}
#cancelEditBtn {
    background: linear-gradient(to right,#dbe6e4 5%,#dcf1ff 100%);
    color: #1b4471;
    font-weight: 500;
    border: 1.5px solid #6cb9f5;
    margin-left: 0;
    box-shadow: 0 2px 10px #cbe8fd16;
}
#closeProductFormModal {
    background: linear-gradient(90deg,#e74c3c 60%,#fd746c 130%);
    color: #fff;
    border: none;
    margin-left: 0;
    margin-top: 1.2em;
    font-size: 1em;
    font-weight: 600;
    float: right;
    box-shadow: 0 2px 10px #fa6e6611;
}

#productId {display: none;}

#imagePreview {
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1.5px solid #ddeefd;
    max-width: 108px;
    max-height: 108px;
    box-shadow: 0 2px 8px #07286015;
    background: #fff;
}

#adminProducts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #f7fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px #66a4ef0c;
    margin-top: 1rem;
}
#adminProducts-table th, #adminProducts-table td {
    border-bottom: 1.5px solid #dde2e7;
    padding: 11px 8px 11px 8px;
    text-align: left;
    vertical-align: middle;
    font-size: .99rem;
}
#adminProducts-table th {
    background: linear-gradient(87deg, #85d8ff 30%, #fff 100%);
    color: #285487;
    font-weight: 600;
    font-size: 1.06rem;
    border-bottom: 2px solid #38b6ff29;
    letter-spacing: 0.03em;
}
#adminProducts-table tr:nth-child(odd){
    background: #eef7ff;
}
#adminProducts-table tr:hover{
    background: #d8f3ffbb;
    transition: background 0.18s;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 2.5px;
    padding: 5px 9px 5px 9px;
    border-radius: 7px;
    font-size: 1.06rem;
    transition: background .18s, color .15s;
    vertical-align: middle;
}
.action-btn.edit { color: #2980b9; }
.action-btn.delete { color: #e74c3c; }
.action-btn.edit:hover { background: #daf2fb; filter: brightness(1.08);}
.action-btn.delete:hover { background: #fdecec; filter: brightness(1.1);}
.vis-toggle {
    accent-color: #2f80ed;
    width: 19px;
    height: 19px;
    vertical-align: middle;
}
#filterInput {
    margin: 0.5rem 0 0.5rem 0;
    width: 55%;
    padding: 0.25rem 0.7rem;
    border-radius: 5px;
    border: 1.2px solid #98cef0;
    font-size: 1.05rem;
    background: #eef7ff;
    margin-bottom: 1.3rem;
    transition: border 0.18s;
}
#filterInput:focus {
    border-color: #56ccf2;
    outline: none;
    background: #fafdff;
}
footer {
    padding: 1.2rem;
    text-align: center;
    color: #547da7c8;
    background: #e6f0fc;
    margin-top: 1.5rem;
    border-top: 1.2px solid #b7e1fa6c;
    font-size: 1.03rem;
    letter-spacing: .03em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 120;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: #4f84ad33;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2.5px);
    transition: background 0.25s;
}
.modal-content {
    background: linear-gradient(120deg,#e3f2fd 50%, #fff 100%);
    padding: 34px 36px 22px 36px;
    border-radius: 15px;
    min-width: 340px;
    box-shadow: 0 8px 45px #0099ff35;
    border: 2.5px solid #e8f3ff;
    filter: drop-shadow(0px 3px 20px #2d80ed17);
}
.modal-product-form {
    max-width: 430px;
}
.modal-content h2 {
    margin-top: 0;
    font-size: 1.38rem;
    letter-spacing: 0.02em;
    color: #2f80ed;
    margin-bottom: 1.3rem;
}
#login-modal.active, #product-form-modal.active {
    display: flex;
    animation: fadeUp .4s cubic-bezier(.35,1.8,.5,1) forwards;
}

@keyframes fadeUp {
    0% {opacity:0; transform: scale(0.96) translateY(42px);}
    100%{opacity:1; transform: scale(1) translateY(0);}
}
#login-form label {
    color: #2b4573;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}
#login-username {
    font-size: 1.1rem;
    padding: 0.37em 1.2em;
    border-radius: 9px;
    border: 1.2px solid #b5dff8;
    background: #f6fbff;
    transition: border 0.16s;
    width: 90%;
    margin-top: .4em;
}
#login-username:focus {
    border-color: #2f80ed;
    outline: none;
}
#login-form button[type="submit"] {
    font-size: 1.1rem;
    padding: 0.5em 1.4em;
    background: linear-gradient(to right,#2d9cfd,#56ccf2);
    color: #fff;
    border: none;
    border-radius: 1.3em;
    margin-top: .6rem;
    cursor: pointer;
    box-shadow: 0 2px 11px #2980b917;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background .15s;
}
#login-form button[type="submit"]:hover {
    filter: brightness(1.07);
}
#statistics-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1.1rem;
}
#statistics-section li {
    margin-bottom: 0.7rem;
    padding: 0.38em 1.3em;
    font-size: 1.08rem;
    background: linear-gradient(90deg, #e6fafd, #bee5f3 60%);
    border-radius: 6px;
    box-shadow: 0 1px 5px #7ad6fc22;
    color: #134766;
}

::-webkit-scrollbar-thumb {background:#bce6ff;border-radius:8px;}
::-webkit-scrollbar {width:10px;background: #f0f6fc;}

@media (max-width: 1050px) {
    main {padding: 0.6rem 0.2rem;}
}

@media (max-width: 700px) {
    main { padding: 1.2rem 0.1rem; }
    .modal-content { min-width: unset; width: 94vw; }
    #adminProducts-table th, #adminProducts-table td { font-size: 0.86rem; }
    #product-form input[type="text"],
    #product-form input[type="number"] {
        width: 99%;
    }
    #product-form {gap: 0.4rem;}
    #statistics-section li {font-size: .97rem;}
    #statistics-section ul {margin-top: 0.2rem;}
    .modal-product-form {max-width: unset;}
}

    @media (max-width:500px) {
        #user-section h2 {
            font-size:1rem;
        }
        header h1 {
            font-size: 1.18rem;
        }
        .modal-content {
            padding: 22px 7vw;
        }
        #save-product-btn,#cancelEditBtn,#closeProductFormModal{
            padding:.5em 1em;
        }
    }

    .admin-tabs-header {
        background: linear-gradient(90deg, #328ae1 85%, #6dd5fa 100%);
        box-shadow: 0 8px 32px #50a1ff19;
        padding: 0;
        margin-bottom: 1.3rem;
        border-radius: 0 0 18px 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .admin-tabs-list {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        padding: 0.35rem .5rem 0.18rem .5rem;
        margin: 0;
        align-items: stretch;
        width:100%;
        max-width: 1020px;
    }

    .admin-tab-btn {
        appearance: none;
        border: none;
        background: none;
        font: inherit;
        font-weight: 600;
        letter-spacing: .03em;
        color: #f7fafd;
        padding: 0.7rem 1.4rem 0.72rem 1.1rem;
        cursor: pointer;
        border-radius: 11px 11px 0 0;
        margin-bottom: -2px;
        outline: none;
        opacity: 0.68;
        transition: background 0.13s, box-shadow 0.14s, color 0.13s, opacity .12s;
        border-bottom: 2.5px solid transparent;
        position: relative;
        user-select: none;
    }

    .admin-tab-btn i {
        margin-right: .5em;
        font-size: 1.08em;
        opacity: .89;
    }

    .admin-tab-btn.active, .admin-tab-btn:hover {
        background: linear-gradient(90deg,#fff 12%, #e8f4ff 100%);
        color: #2577d0;
        box-shadow: 0 2.6px 18px #0159c415;
        opacity: 1;
        z-index: 1;
        border-bottom: 2.6px solid #2f80ed;
    }

    .admin-tab-btn.active {
        font-weight: 700;
    }

    .admin-tabs-header .tabs-spacer {
        flex: 2;
    }

    @media (max-width:900px){
        .admin-tabs-list{max-width:98vw;}
        .admin-tab-btn{font-size:.97em;padding:0.7rem 0.66rem 0.7rem .7rem;}
    }

    @media (max-width: 650px) {
        .admin-tabs-header {flex-direction:column;}
        .admin-tabs-list {
            flex-wrap:wrap;
            justify-content: flex-start;
            padding:.2rem 0;
        }
        .admin-tab-btn {
            padding: .56rem 0.52rem .59rem .51rem;
            font-size:.98em;
            margin-bottom: 0;
            border-radius: 7px 7px 0 0;
        }
    }

    #admin-modal-content {
        top: 100px;
        position: absolute;
        justify-self: center;
        padding: 20px;
    }

    #admin-modal-content .modal-body {
        display: grid;
    }




    .btn {
        padding: 7px;
        border: none;
        border-radius: 3px;
        margin: 2px;
        color: #fff;
        background-color: #45518a;
    }

    .btn-success {
        background-color: #31b175;
    }

    .btn-primary {
        background-color: #3a78d6;
    }

    .btn-warning {
        background-color: #ecae10;
    }

    .btn-info {
        background-color: #c3d256;
    }

    .btn-danger {
        background-color: #be2626;
    }

    /* input[type="file"] {
        background-color: #000;
    } */