:root { --primary-color: #6c5ce7; --secondary-color: #6c5ce7; --accent-color: #fd79a8; --dark-color: #2d3436; --light-color: #f5f6fa; --success-color: #00b894; --danger-color: #d63031; --warning-color: #fdcb6e; } .logo-container { text-align: center; margin-bottom: 20px; } .shop-logo { width: 100px; height: auto; display: block; margin: 0 auto 7px auto; } .shop-title { font-size: 24px; font-weight: bold; margin: 0; display: none; } body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background-color: #29465B; color: var(--dark-color); overflow-x: hidden; transition: all 0.3s ease; margin: 0; padding: 0; } /* Sidebar Menu Styles */ .menu-btn { position: fixed; top: 20px; left: 20px; z-index: 1001; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .sidebar.open ~ .menu-btn { display: none; } .menu-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); } .menu-btn i { font-size: 1.5rem; color: var(--primary-color); } .sidebar { position: fixed; top: 0; left: -300px; width: 300px; height: 100%; background: white; z-index: 1000; box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; padding: 20px; overflow-y: auto; } .sidebar.open { left: 0; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .sidebar-title { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); margin: 0; } .close-btn { background: none; border: none; font-size: 1.5rem; color: var(--dark-color); cursor: pointer; transition: all 0.2s ease; } .close-btn:hover { color: var(--primary-color); transform: rotate(90deg); } .sidebar-menu { display: flex; flex-direction: column; gap: 10px; } .menu-item { width: 100%; text-align: left; padding: 12px 20px; border-radius: 50px; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; border: none; background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.1) 100%); color: var(--dark-color); } .menu-item i { font-size: 1.1rem; color: var(--primary-color); } .menu-item:hover { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; transform: translateX(5px); box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3); } .menu-item:hover i { color: white; } .menu-divider { height: 1px; background: #eee; margin: 20px 0; } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .overlay.active { opacity: 1; visibility: visible; } /* Modern Header */ header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 1rem 0; position: absolute; /* Diubah dari relative ke absolute */ top: 0; /* Diposisikan di paling atas */ left: 0; width: 100%; z-index: 10; box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3); } header::before { content: ''; position: relative; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%); transform: rotate(30deg); animation: shine 8s infinite linear; } @keyframes shine { 0% { transform: rotate(30deg) translate(-10%, -10%); } 100% { transform: rotate(30deg) translate(10%, 10%); } } header h1 { font-weight: 700; font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.1); } header p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 0.5rem; } /* Modern Cards */ .product-card { border: none; border-radius: 15px; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); background: white; height: 100%; position: relative; transform: translateY(0); } .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2); } .product-card .card-img-top { height: 180px; object-fit: cover; transition: transform 0.5s ease; } .product-card:hover .card-img-top { transform: scale(1.03); } .product-card .card-body { padding: 1.5rem; } .product-card .card-title { font-weight: 600; color: var(--dark-color); margin-bottom: 0.75rem; } .product-card .card-text { color: #666; font-size: 0.9rem; margin-bottom: 1rem; } .product-card .price { font-weight: 700; color: var(--primary-color); font-size: 1.2rem; } .product-card .card-footer { background: transparent; border-top: none; padding: 0 1.5rem 1.5rem; } /* Modern Buttons */ .btn { font-weight: 500; letter-spacing: 0.5px; border-radius: 50px; padding: 0.6rem 1.5rem; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden; border: none; } .btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3); } .btn-primary:hover { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4); transform: translateY(-2px); } .btn-primary:active { transform: translateY(0); } .btn-light { background: white; color: var(--primary-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); } .btn-light:hover { background: white; color: var(--primary-color); box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-2px); } .btn-success { background: linear-gradient(135deg, var(--success-color) 0%, #55efc4 100%); box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3); } .btn-success:hover { background: linear-gradient(135deg, var(--success-color) 0%, #55efc4 100%); box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4); transform: translateY(-2px); } .btn-secondary { background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%); box-shadow: 0 4px 15px rgba(99, 110, 114, 0.3); } .btn-secondary:hover { background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%); box-shadow: 0 8px 25px rgba(99, 110, 114, 0.4); transform: translateY(-2px); } /* Badges */ .badge { font-weight: 500; padding: 0.5em 0.8em; border-radius: 50px; letter-spacing: 0.5px; } .bg-success { background-color: var(--success-color) !important; } .bg-danger { background-color: var(--danger-color) !important; } .bg-primary { background-color: var(--primary-color) !important; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.9); display: flex; justify-content: center; align-items: center; z-index: 9999; display: none; } .loading-content { text-align: center; } .loading-gif { width: 150px; height: 150px; } /* Notification */ .notification-container { position: fixed; top: 20px; right: 20px; z-index: 1000; max-width: 350px; width: 100%; } .notification { background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 15px; overflow: hidden; transform: translateX(120%); animation: slideIn 0.5s forwards, fadeOut 0.5s 5s forwards; transition: all 0.3s ease; position: relative; } .notification:hover { animation-play-state: paused; transform: translateX(0) !important; opacity: 1 !important; box-shadow: 0 15px 35px rgba(0,0,0,0.15); } .notification-header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; } .notification-body { padding: 15px 20px; background: white; } .notification-code { font-family: 'Courier New', monospace; font-weight: bold; color: var(--primary-color); background: rgba(108, 92, 231, 0.1); padding: 2px 6px; border-radius: 4px; } .notification-close { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; padding: 0; opacity: 0.7; transition: opacity 0.2s ease; } .notification-close:hover { opacity: 1; } @keyframes slideIn { to { transform: translateX(0); } } @keyframes fadeOut { to { opacity: 0; } } /* Modal */ .modal-content { border: none; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); } .modal-header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; border-bottom: none; padding: 1.2rem 1.5rem; } .modal-title { font-weight: 600; } .modal-body { padding: 1.5rem; } .modal-footer { border-top: none; padding: 1rem 1.5rem; background: #f8f9fa; } /* Form Elements */ .form-control { border-radius: 8px; padding: 0.6rem 1rem; border: 1px solid #e0e0e0; transition: all 0.3s ease; } .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25); } /* Pagination Styles */ .pagination-container { display: flex; justify-content: center; margin-top: 30px; margin-bottom: 50px; } .pagination { display: flex; list-style: none; padding: 0; margin: 0; } .page-item { margin: 0 5px; } .page-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50% !important; color: var(--dark-color); border: 1px solid #dee2e6"; transition: all 0.3s ease; } .page-link:hover { background-color: var(--secondary-color); color: white; border-color: var(--secondary-color); } .page-item.active .page-link { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; border-color: var(--primary-color); } .page-item.disabled .page-link { color: #6c757d; pointer-events: none; background-color: #fff; border-color: #dee2e6"; } /* Menu Content Styles */ .menu-content { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: white; z-index: 1002; box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; padding: 20px; overflow-y: auto; } .menu-content.open { right: 0; } .menu-content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .menu-content-title { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); margin: 0; } .menu-content-close { background: none; border: none; font-size: 1.5rem; color: var(--dark-color); cursor: pointer; transition: all 0.2s ease; } .menu-content-close:hover { color: var(--primary-color); transform: rotate(90deg); } .menu-content-body { padding: 10px 0; } /* Responsive Adjustments */ @media (max-width: 768px) { header { padding: 1rem 0 0 0; } header h1 { font-size: 2rem; } .product-card .card-img-top { height: 150px; } .notification-container { max-width: 280px; right: 10px; top: 10px; } .page-link { width: 35px; height: 35px; font-size: 0.9rem; } .sidebar { width: 270px; } .menu-content { width: 85%; right: -85%; } .menu-btn { top: 15px; } } /* Loading Animation */ @keyframes pulse { 0% { transform: scale(0.95); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.95); opacity: 0.6; } } .pulse-animation { animation: pulse 1.5s infinite ease-in-out; } /* Floating Animation */ @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } } .float-animation { animation: float 3s infinite ease-in-out; } /* Ripple Effect */ .ripple { position: relative; overflow: hidden; } .ripple-effect { position: absolute; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4); transform: scale(0); animation: ripple 0.6s linear; pointer-events: none; } @keyframes ripple { to { transform: scale(4); opacity: 0; } } /* Status Animation Styles */ .status-animation-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .status-animation-container.show { opacity: 1; visibility: visible; } .status-animation-content { background: white; border-radius: 20px; padding: 2rem; text-align: center; max-width: 400px; width: 90%; transform: scale(0.8); transition: all 0.3s ease; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); } .status-animation-container.show .status-animation-content { transform: scale(1); } .status-icon { font-size: 5rem; margin-bottom: 1.5rem; display: inline-block; } .success-icon { color: #00b894; animation: bounceIn 0.6s ease; } .error-icon { color: #d63031; animation: shake 0.6s ease; } .status-message { font-size: 1.2rem; margin-bottom: 1.5rem; color: #2d3436; } .status-button { border: none; background: linear-gradient(135deg, #d63031 0%, #ff7675 100%); color: white; padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3); } .status-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(214, 48, 49, 0.4); } @keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } } @keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } } /* Result Modal Styles */ .result-modal-content { border: none; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); text-align: center; padding: 2rem; } .result-icon { font-size: 5rem; margin-bottom: 1.5rem; animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; } .result-message { font-size: 1.2rem; margin-bottom: 1.5rem; } .result-btn { border-radius: 50px; padding: 0.6rem 1.5rem; font-weight: 500; letter-spacing: 0.5px; transition: all 0.3s ease; } .result-btn-danger { background: linear-gradient(135deg, var(--danger-color) 0%, #ff7675 100%); color: white; box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3); } .result-btn-danger:hover { background: linear-gradient(135deg, var(--danger-color) 0%, #ff7675 100%); box-shadow: 0 8px 25px rgba(214, 48, 49, 0.4); transform: translateY(-2px); color: white; } @keyframes zoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } @keyframes shake { from, to { transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { transform: translate3d(-5px, 0, 0); } 20%, 40%, 60%, 80% { transform: translate3d(5px, 0, 0); } } .shake-animation { animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }