.dashboard { display: grid; grid-template-columns: 280px 1fr; max-height: 100vh; overflow-y:auto; max-width:100%; overflow-x:hidden; margin-bottom:60px; } .sidebar { background: var(--background); box-shadow: 0 0 10px rgba(0,0,0,0.1); border-right: 3px solid var(--simple-color); padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: all 0.3s ease; z-index: 11999; } .in-storelogo { font-size: 1.2rem; font-weight: 700; text-align: center; color: var(--branding); padding: 0 20px 15px; border-bottom: 3px solid var(--simple-color); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; justify-content: center; } .nav-menu { padding: 0 20px; } .nav-item { margin-bottom: 8px; animation: slideInLeft 0.5s ease forwards; opacity: 0; } .nav-item:nth-child(1) { animation-delay: 0.1s; } .nav-item:nth-child(2) { animation-delay: 0.2s; } .nav-item:nth-child(3) { animation-delay: 0.3s; } .nav-item:nth-child(4) { animation-delay: 0.4s; } .nav-item:nth-child(5) { animation-delay: 0.5s; } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } } .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 8px; color: var(--light-text); text-decoration: none; font-weight: 500; transition: all 0.3s ease; border: 1px solid transparent; } .nav-link:hover { background: rgba(150, 201, 61, 0.1); border-color: var(--branding); transform: translateX(5px); } .nav-link.active { background: rgba(150, 201, 61, 0.15); border-color: var(--branding); color: var(--branding); box-shadow: 0 4px 12px rgba(150, 201, 61, 0.1); } .nav-link i { width: 20px; text-align: center; font-size: 1.1rem; } .nav-link span { font-size: 0.95rem; } .main-content { padding: 20px; max-width:100%; margin-bottom:80px; width:100%; overflow-x:auto; background: var(--background); border-right: 3px solid var(--simple-color); border-bottom: 3px solid var(--simple-color); border-top: 3px solid var(--simple-color); } .mobile-header { display: none; background: var(--background); border-bottom: 2px solid var(--simple-color); padding: 15px 20px; position: sticky; top: 0; z-index: 1000; align-items: center; justify-content: space-between; } .mobile-logo { display: flex; align-items: center; gap: 10px; color: var(--branding); font-weight: 700; font-size: 1.1rem; } .mobile-toggle { background: var(--card-bg); border: 2px solid var(--simple-color); color: var(--light-text); width: 45px; height: 45px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; } .mobile-toggle:hover { border-color: var(--branding); background: var(--g-branding); color: var(--background); } .mobile-toggle i { font-size: 1.2rem; } .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 998; backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; } .sidebar-overlay.active { display: block; opacity: 1; } .sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-track { background: var(--simple-color); } .sidebar::-webkit-scrollbar-thumb { background: var(--branding); border-radius: 10px; } .sidebar::-webkit-scrollbar-thumb:hover { background: #7db82a; } .in-storeheader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .tb-bottom-tab { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--background); border-top: 3px solid var(--simple-color); padding: 8px 0; z-index: 1000; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); } .tb-tab-item { flex: 1; text-align: center; } .tb-tab-link { display: flex; flex-direction: column; align-items: center; padding: 8px 5px; color: var(--light-text); text-decoration: none; border-radius: 8px; transition: all 0.3s ease; font-size: 0.75rem; } .tb-tab-link i { font-size: 1.2rem; margin-bottom: 4px; transition: all 0.3s ease; } .tb-tab-link span { font-weight: 500; } .tb-tab-link:hover { background: rgba(150, 201, 61, 0.1); color: var(--branding); } .tb-tab-link.active { background: rgba(150, 201, 61, 0.15); color: var(--branding); } .tb-tab-link.active i { transform: translateY(-2px); } @media (max-width: 768px) { .tb-bottom-tab { display: flex; justify-content: space-around; align-items: center; } .main-content { padding-bottom: 80px; } } .social-ads-compact { font-family: inherit; font-size: 1rem; line-height: 1.6; color: var(--light-text); padding: 12px; background: rgba(150, 201, 61, 0.05); border-radius: 8px; border: 1px solid var(--simple-color); } .social-ad-inline { display: inline-flex; align-items: center; margin: 0 4px; color: var(--branding); } .social-ad-inline i { margin-right: 4px; font-size: 1.1rem; } .social-ad-separator { color: var(--simple-color); margin: 0 8px; font-weight: 300; } .social-ad-note { font-size: 0.85rem; color: var(--light-text); font-style: italic; margin-left: 8px; } .page-title { font-size: 28px; font-weight: 700; color: var(--light-text); } .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background-color: var(--branding); color: var(--background); display: flex; align-items: center; justify-content: center; font-weight: 600; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; margin-bottom: 20px; } .stat-card { background: var(--card-bg); border: 1px solid var(--simple-color); border-radius: 8px; max-width: 260px; padding: 9px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s; } .stat-card:hover { transform: translateY(-3px); } .stat-header { margin-bottom: 5px; } .stat-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom:15px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .stat-icon.blue { background-color: rgba(150, 201, 61, 0.2); color: var(--branding); } .stat-icon.green { background-color: rgba(0, 200, 81, 0.2); color: var(--success); } .stat-icon.orange { background-color: rgba(255, 165, 0, 0.2); color: #ff9800; } .stat-icon.red { background-color: rgba(231, 76, 60, 0.2); color: var(--danger); } .stat-title { font-size: 14px; color: var(--light-text); text-align:center; font-weight: 500; } .stat-value { font-size: 21px; font-weight: 700; text-align:center; color: var(--light-text); margin: 5px 0; } .stat-change { font-size: 12px; display: flex; align-items: center; gap: 5px; } .stat-change.positive { color: var(--success); } .stat-change.negative { color: var(--danger); } .search-filter { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 15px; flex-wrap: wrap; } .search-box { position: relative; flex: 1; min-width: 250px; } .search-input { width: 100%; padding: 12px 20px 12px 45px; border: 2px solid var(--simple-color); border-radius: 8px; font-size: 14px; transition: all 0.2s; background-color: var(--background); color: var(--light-text); } .search-input:focus { outline: none; border-color: var(--branding); box-shadow: 0 0 0 3px rgba(150, 201, 61, 0.2); } .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--simple-color); } .filter-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background-color: var(--background); border: 2px solid var(--simple-color); border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--light-text); transition: all 0.2s; } .filter-btn:hover { background-color: var(--card-bg); border-color: var(--branding); } .add-product-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--g-branding); color: var(--background); border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all 0.2s; text-decoration: none; } .add-product-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(150, 201, 61, 0.3); } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; } .product-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--simple-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: all 0.3s ease; position: relative; color: var(--light-text); } .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); } .product-badge { position: absolute; top: 8px; left: 8px; background: var(--g-branding); color: var(--background); padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; z-index: 2; } .product-image { width: 100%; height: 180px; object-fit: cover; } .product-details { padding: 12px; } .product-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--light-text); } .product-category { font-size: 11px; color: var(--light-text); opacity:0.6; margin-bottom: 8px; } .product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .current-price { font-size: 16px; font-weight: 700; color: var(--branding); } .old-price { font-size: 12px; color: var(--simple-color); text-decoration: line-through; } .product-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--light-text); opacity:0.7; margin-bottom: 10px; } .product-stock { display: flex; align-items: center; gap: 4px; } .product-stock.in-stock { color: var(--success); } .product-stock.out-of-stock { color: var(--danger); } .product-views { display: flex; align-items: center; gap: 4px; } .product-status { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; } .status-badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; } .status-approved { background-color: rgba(0, 200, 81, 0.2); color: var(--success); } .status-pending { background-color: rgba(255, 165, 0, 0.2); color: #ff9800; } .status-active { background-color: rgba(150, 201, 61, 0.2); color: var(--branding); } .product-actions { display: flex; gap: 6px; } .action-btn { flex: 1; padding: 8px; border-radius: 6px; border: none; font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; } .view-btn { background-color: rgba(150, 201, 61, 0.2); color: var(--branding); } .view-btn:hover { background-color: rgba(150, 201, 61, 0.3); } .edit-btn { background-color: rgba(99, 102, 241, 0.2); color: #6366f1; } .edit-btn:hover { background-color: rgba(99, 102, 241, 0.3); } .delete-btn { background-color: rgba(231, 76, 60, 0.2); color: var(--danger); } .delete-btn:hover { background-color: rgba(231, 76, 60, 0.3); } .load-more { margin-top: 30px; text-align: center; } .load-more-btn { padding: 12px 24px; background-color: var(--background); border: 2px solid var(--simple-color); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--light-text); cursor: pointer; transition: all 0.2s; } .load-more-btn:hover { background-color: var(--card-bg); border-color: var(--branding); } .loading { display: none; text-align: center; padding: 20px; } .loading-spinner { width: 40px; height: 40px; margin: 0 auto; border: 4px solid var(--simple-color); border-top: 4px solid var(--branding); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; } .empty-icon { font-size: 48px; color: var(--light-text); margin-bottom: 20px; } .empty-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--light-text); } .empty-description { color: var(--light-text); margin-bottom: 20px; border-radius: 8px; border: 2px dashed var(--simple-color); padding: 15px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; } @media (max-width: 1024px) { .dashboard { grid-template-columns: 1fr; } .mobile-header { display: flex; } .sidebar { position: fixed; left: -100%; top: 0; width: 280px; height: 100vh; transition: left 0.3s ease; box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3); } .sidebar.active { left: 0; } .main-content { padding: 15px; } .nav-link:hover { transform: none; } .stats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } } @media (max-width: 768px) { .mobile-header { padding: 12px 15px; } .sidebar { width: 75%; max-width: 280px; } .main-content { padding: 12px; } .page-title { font-size: 22px; } .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .search-filter { flex-direction: column; align-items: stretch; } .search-box { width: 100%; min-width: 100%; } } @media (max-width: 480px) { .sidebar { width: 80%; } .main-content { padding: 10px; } .in-storelogo { padding: 0 15px 12px; font-size: 1rem; } .nav-menu { padding: 0 15px; } .nav-link { padding: 10px 12px; font-size: 0.9rem; } .mobile-logo { font-size: 0.95rem; } .mobile-toggle { width: 40px; height: 40px; } .mobile-toggle i { font-size: 1.1rem; } .stats-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } .stat-card { padding: 10px; } .products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } } .cpi-body { } .cpi-head { font-size:13px; margin:5px; flex-wrap:nowrap; } .cpi-body p { font-size:11px; margin:2px 5px; max-width:300px; opacity:0.7; } .cpi-box { padding: 10px; justify-content:space-evenly; width: 99%; margin:10px auto; max-width: 950px; text-align: center; overflow-x:auto; color: var(--light-text); } .cpi-box h1 { font-size: 20px; margin-bottom: 15px; text-align:left; color:var(--branding); } .cpi-group { display: flex; align-items: center; gap: 5px; margin-bottom: 15px; } .cpi-input { background:var(--card-bg); padding: 9px 11px; display:inline-block; border-radius: 8px; border: 2px solid var(--simple-color); color: var(--light-text); font-size: 14px; } .cpi-copy { display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 8px 10px; border: none; border-radius: 8px; background: var(--branding); color: var(--light-text); font-size: 14px; } .cpi-visit { color: var(--branding); text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: 14px; } .cpi-visit:hover { color:var(--light-text); } .store-editor-container { max-width: 600px; margin: 0 auto; padding: 7px; width:100%; color: var(--light-text); } .store-editor-header { text-align: center; margin-bottom: 20px; } .store-editor-header h2 { font-size: 21px; font-weight: bold; margin-bottom: 8px; color: var(--branding); display: flex; align-items: center; justify-content: center; gap: 10px; } .store-editor-header .subtitle { font-size: 14px; color: var(--light-text); opacity: 0.8; } .store-editor-card { background: var(--card-bg); color:var(--light-text); border-radius: 12px; padding: 10px; border: 1px solid var(--simple-color); } .store-link-preview { background:var(--background); border: 1px solid var(--simple-color); border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 5px; } .store-link-preview i { color: var(--branding); } #slugPreview { font-weight: bold; color: var(--branding); } .form-actions { display: flex; gap: 15px; margin-top: 30px; } .btn-primary { background: var(--branding); color: var(--background); border: none; border-radius: 8px; padding: 14px 24px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 1; transition: all 0.3s ease; } .btn-primary:hover:not(:disabled) { background: rgba(150, 201, 61, 0.9); transform: translateY(-2px); } .btn-secondary { background: rgba(53, 56, 55, 0.3); color: var(--light-text); border: 1px solid var(--simple-color); border-radius: 8px; padding: 14px 24px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 1; transition: all 0.3s ease; } .btn-secondary:hover { border-color: var(--branding); color: var(--branding); } .btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; } .btn-text { flex: 1; } .loading-spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--background); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } .alert-message { display: none; border-radius: 8px; padding: 15px; margin-top: 20px; text-align: center; font-weight: 500; } .alert-success { background: rgba(0, 200, 150, 0.2); border: 1px solid rgba(0, 200, 150, 0.3); color: #00ff96; } .alert-error { background: rgba(255, 100, 100, 0.2); border: 1px solid rgba(255, 100, 100, 0.3); color: #ff6464; }