Files
worker/html/assets/css/style.css
2025-11-03 11:20:09 +07:00

2257 lines
38 KiB
CSS

/* ===========================
EUROTILE MOBILE APP - DESIGN SYSTEM
=========================== */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
/* Root Variables - Color Palette */
:root {
--primary-blue: #005B9A;
--light-blue: #38B6FF;
--accent-cyan: #35C6F4;
--background-gray: #F4F6F8;
--text-dark: #212121;
--text-light: #666666;
--white: #FFFFFF;
--border-color: #EEEEEE;
--success-color: #28a745;
--warning-color: #ffc107;
--danger-color: #dc3545;
--shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
--shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.07);
--shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html {
font-size: 14px;
scroll-behavior: smooth;
}
body {
font-family: 'Roboto', sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 1.5;
color: var(--text-dark);
background-color: var(--background-gray);
min-height: 100vh;
position: relative;
padding-bottom: 70px; /* Space for bottom nav */
overflow-x: hidden;
}
/* Typography */
h1 {
font-size: 20px;
font-weight: 700;
color: var(--text-dark);
line-height: 1.3;
/* <!----> */
/* margin-bottom: 16px; */
}
h2 {
font-size: 16px;
font-weight: 700;
color: var(--text-dark);
line-height: 1.4;
margin-bottom: 12px;
}
h3 {
font-size: 14px;
font-weight: 600;
color: var(--text-dark);
line-height: 1.4;
margin-bottom: 8px;
}
p {
color: var(--text-light);
margin-bottom: 12px;
}
.text-small {
font-size: 12px;
}
.text-bold {
font-weight: 700;
}
.text-center {
text-align: center;
}
/* Container & Layout */
.container {
max-width: 100%;
padding: 16px;
}
.page-wrapper {
min-height: calc(100vh - 70px);
}
/* Header Styles */
.header {
background: var(--white);
padding: 16px;
box-shadow: var(--shadow-light);
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
}
.header-title {
font-size: 18px;
font-weight: 700;
color: var(--text-dark);
}
.back-button {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
cursor: pointer;
}
/* Card Components */
.card {
background: var(--white);
border-radius: 12px;
padding: 16px;
box-shadow: var(--shadow-medium);
margin-bottom: 16px;
}
.card-title {
font-size: 16px;
font-weight: 700;
margin-bottom: 12px;
color: var(--text-dark);
}
/* Member Card Styles */
.member-card {
width: 100%;
height: 200px;
border-radius: 16px;
position: relative;
overflow: hidden;
background-size: cover;
background-position: center;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
color: var(--white);
box-shadow: var(--shadow-heavy);
margin-bottom: 24px;
}
.member-card-titan {
background-image: url('../images/card-titan.png');
}
.member-card-gold {
background-image: url('../images/card-gold.png');
}
.member-card-diamond {
background-image: url('../images/card-diamond.png');
}
/* Buttons */
.btn {
display: inline-block;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
}
.btn-primary {
background-color: var(--primary-blue);
color: var(--white);
}
.btn-primary:hover {
background-color: #004980;
transform: translateY(-1px);
box-shadow: var(--shadow-medium);
}
.btn-secondary {
background-color: transparent;
color: var(--primary-blue);
border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
background-color: var(--primary-blue);
color: var(--white);
}
.btn-block {
display: block;
width: 100%;
}
.btn-sm {
padding: 8px 16px;
font-size: 12px;
}
.btn-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
/* Form Elements */
.form-group {
margin-bottom: 16px;
}
.form-label {
display: block;
font-size: 12px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 8px;
}
.form-input {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
background: var(--white);
}
.form-input:focus {
outline: none;
border-color: var(--primary-blue);
box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.1);
}
.form-input-icon {
position: relative;
}
.form-input-icon .form-input {
padding-left: 44px;
}
.form-input-icon .icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: var(--text-light);
}
.form-select {
appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 20px;
padding-right: 40px;
}
/* OTP Input Styles */
.otp-container {
display: flex;
justify-content: center;
gap: 8px;
margin: 24px 0;
}
.otp-input {
width: 48px;
height: 48px;
text-align: center;
font-size: 20px;
font-weight: 700;
border: 2px solid var(--border-color);
border-radius: 8px;
transition: all 0.3s ease;
}
.otp-input:focus {
outline: none;
border-color: var(--primary-blue);
}
/* Grid Systems */
.grid {
display: grid;
gap: 16px;
}
.grid-2 {
grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
grid-template-columns: repeat(3, 1fr);
}
/* Feature Grid */
.feature-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-bottom: 24px;
}
.feature-item {
background: var(--white);
border-radius: 12px;
padding: 16px;
text-align: center;
box-shadow: var(--shadow-light);
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
color: inherit;
}
.feature-item:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
.feature-icon {
font-size: 32px;
color: var(--primary-blue);
margin-bottom: 8px;
}
.feature-title {
font-size: 12px;
font-weight: 500;
color: var(--text-dark);
}
/* Slider/Carousel */
.slider-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
-ms-overflow-style: none;
margin-bottom: 24px;
}
.slider-container::-webkit-scrollbar {
display: none;
}
.slider-wrapper {
display: flex;
gap: 12px;
padding: 4px;
}
.slider-item {
flex: 0 0 280px;
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-light);
}
.slider-item img {
width: 100%;
height: 140px;
object-fit: cover;
}
/* Product Grid */
.product-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-bottom: 24px;
}
.product-card {
background: var(--white);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-light);
transition: all 0.3s ease;
}
.product-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
.product-image {
width: 100%;
height: 160px;
object-fit: cover;
}
.product-info {
padding: 12px;
}
.product-name {
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.product-price {
font-size: 16px;
font-weight: 700;
color: var(--primary-blue);
margin-bottom: 8px;
}
/* List Items */
.list-item {
background: var(--white);
padding: 16px;
border-radius: 12px;
margin-bottom: 12px;
box-shadow: var(--shadow-light);
display: flex;
align-items: center;
justify-content: space-between;
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
}
.list-item:hover {
box-shadow: var(--shadow-medium);
}
.list-item-icon {
width: 48px;
height: 48px;
border-radius: 8px;
background: var(--background-gray);
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
font-size: 20px;
color: var(--primary-blue);
}
.list-item-content {
flex: 1;
}
.list-item-title {
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 4px;
}
.list-item-subtitle {
font-size: 12px;
color: var(--text-light);
}
.list-item-arrow {
color: var(--text-light);
font-size: 20px;
}
/* Bottom Navigation */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--white);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
height: 70px;
display: flex;
align-items: center;
justify-content: space-around;
z-index: 1000;
padding: 0 16px;
}
.nav-item {
/* flex: 1; */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-decoration: none;
color: var(--text-light);
transition: all 0.3s ease;
padding: 8px;
cursor: pointer;
}
.nav-item.active {
color: var(--primary-blue);
}
/*.nav-item:hover {
color: var(--primary-blue);
}*/
.nav-icon {
font-size: 24px;
margin-bottom: 4px;
}
.nav-label {
font-size: 11px;
font-weight: 500;
}
/* Floating Action Button */
.fab {
position: fixed;
bottom: 90px;
right: 16px;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--accent-cyan);
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-heavy);
cursor: pointer;
transition: all 0.3s ease;
z-index: 999;
border: none;
font-size: 24px;
}
.fab:hover {
transform: scale(1.1);
box-shadow: 0 10px 30px rgba(53, 198, 244, 0.4);
}
/* Badge */
.badge {
display: inline-block;
padding: 4px 8px;
font-size: 11px;
font-weight: 700;
border-radius: 12px;
background: var(--danger-color);
color: var(--white);
position: absolute;
top: -4px;
right: -4px;
min-width: 20px;
text-align: center;
}
/* Progress Bar */
.progress {
background: var(--border-color);
height: 8px;
border-radius: 4px;
overflow: hidden;
margin: 16px 0;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--primary-blue) 0%, var(--light-blue) 100%);
border-radius: 4px;
transition: width 0.5s ease;
}
/* Tab Navigation */
.tab-nav {
display: flex;
background: var(--white);
border-radius: 12px;
padding: 4px;
margin-bottom: 16px;
box-shadow: var(--shadow-light);
}
.tab-item {
flex: 1;
padding: 12px;
text-align: center;
font-size: 14px;
font-weight: 500;
color: var(--text-light);
background: transparent;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
}
.tab-item.active {
/*background: var(--primary-blue);*/
color: var(--white);
}
/* Search Bar */
.search-bar {
background: var(--white);
border-radius: 12px;
padding: 12px 16px;
display: flex;
align-items: center;
box-shadow: var(--shadow-light);
margin-bottom: 16px;
}
.search-input {
flex: 1;
border: none;
outline: none;
font-size: 14px;
color: var(--text-dark);
background: transparent;
padding-left: 8px;
}
.search-icon {
color: var(--text-light);
font-size: 20px;
}
/* Filter Pills */
.filter-container {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 4px;
margin-bottom: 16px;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.filter-container::-webkit-scrollbar {
display: none;
}
.filter-pill {
padding: 8px 16px;
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 20px;
font-size: 13px;
font-weight: 500;
color: var(--text-dark);
white-space: nowrap;
cursor: pointer;
transition: all 0.3s ease;
flex-shrink: 0;
}
.filter-pill.active {
background: var(--primary-blue);
color: var(--white);
border-color: var(--primary-blue);
}
/* Cart Item */
.cart-item {
background: var(--white);
border-radius: 12px;
padding: 16px;
margin-bottom: 12px;
box-shadow: var(--shadow-light);
display: flex;
gap: 12px;
}
.cart-item-image {
width: 80px;
height: 80px;
border-radius: 8px;
object-fit: cover;
}
.cart-item-info {
flex: 1;
}
.cart-item-name {
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 4px;
}
.cart-item-price {
font-size: 16px;
font-weight: 700;
color: var(--primary-blue);
margin-bottom: 8px;
}
/* Quantity Control */
.quantity-control {
display: flex;
align-items: center;
gap: 12px;
}
.quantity-btn {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid var(--border-color);
background: var(--white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.quantity-btn:hover {
background: var(--primary-blue);
color: var(--white);
border-color: var(--primary-blue);
}
.quantity-value {
font-size: 16px;
font-weight: 500;
min-width: 30px;
text-align: center;
}
/* Notification Item */
.notification-item {
background: var(--white);
padding: 16px;
border-radius: 12px;
margin-bottom: 12px;
box-shadow: var(--shadow-light);
position: relative;
}
.notification-item.unread {
border-left: 3px solid var(--primary-blue);
}
.notification-title {
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 4px;
}
.notification-message {
font-size: 13px;
color: var(--text-light);
margin-bottom: 8px;
}
.notification-time {
font-size: 11px;
color: var(--text-light);
}
/* Empty State */
.empty-state {
text-align: center;
padding: 48px 24px;
}
.empty-icon {
font-size: 64px;
color: var(--border-color);
margin-bottom: 16px;
}
.empty-title {
font-size: 16px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 8px;
}
.empty-message {
font-size: 14px;
color: var(--text-light);
}
/* Success State */
.success-container {
text-align: center;
padding: 48px 24px;
}
.success-icon {
width: 80px;
height: 80px;
background: var(--success-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
font-size: 40px;
color: var(--white);
}
.success-title {
font-size: 24px;
font-weight: 700;
color: var(--text-dark);
margin-bottom: 12px;
}
.success-message {
font-size: 14px;
color: var(--text-light);
margin-bottom: 24px;
}
/* Loading State */
.loading {
display: flex;
justify-content: center;
padding: 24px;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border-color);
border-top-color: var(--primary-blue);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-light); }
.bg-primary { background-color: var(--primary-blue); }
.bg-white { background-color: var(--white); }
.bg-gray { background-color: var(--background-gray); }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
/* Complaint Button for Points History */
.btn-complaint {
background: var(--primary-blue);
color: var(--white);
border: none;
border-radius: 16px;
padding: 6px 12px;
font-size: 11px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
height: 40px;
}
.btn-complaint:hover {
background: var(--light-blue);
transform: translateY(-1px);
}
/* Referral Page Styles */
.referral-logo {
width: 48px;
height: 48px;
background: var(--primary-blue);
color: var(--white);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 14px;
}
.referral-item {
margin-bottom: 16px;
}
.referral-item:last-child {
margin-bottom: 0;
}
.referral-label {
display: block;
font-size: 13px;
color: var(--text-dark);
font-weight: 500;
margin-bottom: 8px;
}
.referral-value-container {
display: flex;
align-items: center;
justify-content: space-between;
background: var(--background-gray);
border-radius: 8px;
padding: 12px;
border: 1px solid var(--border-color);
}
.referral-value {
flex: 1;
font-size: 14px;
color: var(--text-dark);
margin-right: 12px;
word-break: break-all;
}
.referral-actions {
display: flex;
gap: 8px;
}
.referral-btn {
width: 36px;
height: 36px;
background: var(--white);
border: 1px solid var(--border-color);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
color: var(--text-light);
}
.referral-btn:hover {
background: var(--primary-blue);
color: var(--white);
border-color: var(--primary-blue);
}
.benefit-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.benefit-item {
display: flex;
align-items: flex-start;
gap: 12px;
font-size: 14px;
color: var(--text-dark);
}
.benefit-item i {
font-size: 16px;
margin-top: 2px;
}
.steps-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.step-item {
display: flex;
align-items: flex-start;
gap: 12px;
font-size: 14px;
color: var(--text-dark);
}
.step-number {
width: 24px;
height: 24px;
background: var(--primary-blue);
color: var(--white);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
flex-shrink: 0;
margin-top: 2px;
}
/* Payment Card Styles */
.payments-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.payment-card {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-light);
display: flex;
position: relative;
overflow: hidden;
}
.payment-status-indicator {
width: 4px;
height: 100%;
flex-shrink: 0;
}
.payment-card.processing .payment-status-indicator {
background: var(--primary-blue);
}
.payment-card.completed .payment-status-indicator {
background: var(--success-color);
}
.payment-card.pending .payment-status-indicator {
background: var(--warning-color);
}
.payment-card.cancelled .payment-status-indicator {
background: var(--danger-color);
}
.payment-content {
padding: 16px;
flex: 1;
}
.payment-id {
font-size: 16px;
font-weight: 500;
color: var(--primary-blue);
margin: 0;
}
.payment-amount {
font-size: 16px;
font-weight: 700;
color: var(--danger-color);
margin-left: auto;
}
.payment-details {
margin-top: 8px;
}
.payment-details p {
margin: 4px 0;
font-size: 12px;
color: var(--text-light);
}
.payment-time {
color: var(--text-dark) !important;
font-weight: 500;
}
.payment-store {
color: var(--text-dark) !important;
}
.payment-note {
font-size: 11px !important;
}
.status-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
color: var(--white);
}
.status-badge.approved {
background: var(--success-color);
}
.status-badge.processing {
background: var(--warning-color);
}
.status-badge.completed {
background: var(--success-color);
}
.status-badge.pending {
background: var(--primary-blue);
}
.status-badge.cancelled {
background: var(--danger-color);
}
/* Order Card Styles (similar to payment cards) */
.orders-list {
display: flex;
flex-direction: column;
gap: 12px;
}
/*.order-card {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-light);
display: flex;
position: relative;
overflow: hidden;
}*/
.order-card {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-light);
display: flex;
position: relative;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
}
.order-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
.order-status-indicator {
width: 4px;
height: 100%;
flex-shrink: 0;
}
.order-card.processing .order-status-indicator {
background: var(--primary-blue);
}
.order-card.completed .order-status-indicator {
background: var(--success-color);
}
.order-card.pending .order-status-indicator {
background: var(--warning-color);
}
.order-card.shipping .order-status-indicator {
background: var(--accent-cyan);
}
.order-card.cancelled .order-status-indicator {
background: var(--danger-color);
}
.order-content {
padding: 16px;
flex: 1;
}
.order-id {
font-size: 16px;
font-weight: 500;
color: var(--primary-blue);
margin: 0;
}
.order-amount {
font-size: 16px;
font-weight: 700;
color: var(--danger-color);
margin-left: auto;
}
.order-details {
margin-top: 8px;
}
.order-details p {
margin: 4px 0;
font-size: 12px;
color: var(--text-light);
}
.order-date, .order-customer {
color: var(--text-dark) !important;
font-weight: 500;
}
.order-note {
font-size: 11px !important;
}
.status-badge.shipping {
background: var(--accent-cyan);
}
/* Chat Interface Styles */
.chat-header {
background: var(--primary-blue);
color: var(--white);
padding: 16px;
display: flex;
align-items: center;
gap: 12px;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
height: 70px;
}
.chat-user-info {
flex: 1;
display: flex;
align-items: center;
gap: 12px;
}
.chat-avatar {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.chat-name {
font-size: 16px;
font-weight: 500;
margin: 0;
}
.chat-status {
font-size: 12px;
opacity: 0.8;
margin: 0;
}
.chat-call-button {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 50%;
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.chat-call-button:hover {
background: rgba(255, 255, 255, 0.3);
}
.chat-messages {
flex: 1;
padding: 16px;
overflow-y: auto;
margin-top: 70px;
margin-bottom: 70px;
display: flex;
flex-direction: column;
gap: 12px;
}
.message {
display: flex;
align-items: flex-end;
gap: 8px;
margin-bottom: 8px;
}
.message.system {
justify-content: center;
margin: 16px 0;
}
.message.system .message-content {
background: var(--border-color);
color: var(--text-light);
font-size: 12px;
padding: 8px 12px;
border-radius: 16px;
text-align: center;
}
.message.outgoing {
flex-direction: row-reverse;
justify-content: flex-start;
}
.message.incoming {
justify-content: flex-start;
}
.message-avatar {
width: 32px;
height: 32px;
background: var(--primary-blue);
color: var(--white);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
}
.message-content {
max-width: 70%;
background: var(--white);
border-radius: 16px;
padding: 12px 16px;
box-shadow: var(--shadow-light);
position: relative;
}
.message.outgoing .message-content {
background: var(--primary-blue);
color: var(--white);
}
.message-content p {
margin: 0 0 4px 0;
font-size: 14px;
line-height: 1.4;
}
.message-time {
font-size: 11px;
opacity: 0.7;
display: block;
}
.typing-indicator {
display: flex;
gap: 4px;
align-items: center;
padding: 4px 0;
}
.typing-dot {
width: 8px;
height: 8px;
background: var(--text-light);
border-radius: 50%;
animation: typing 1.5s infinite ease-in-out;
}
.typing-dot:nth-child(2) {
animation-delay: 0.3s;
}
.typing-dot:nth-child(3) {
animation-delay: 0.6s;
}
@keyframes typing {
0%, 60%, 100% {
transform: scale(0.8);
opacity: 0.5;
}
30% {
transform: scale(1);
opacity: 1;
}
}
.chat-input-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--white);
padding: 12px 16px;
border-top: 1px solid var(--border-color);
z-index: 100;
}
.chat-input-wrapper {
display: flex;
align-items: center;
gap: 8px;
background: var(--background-gray);
border-radius: 24px;
padding: 8px 12px;
}
.chat-attachment-button,
.chat-send-button {
width: 36px;
height: 36px;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
flex-shrink: 0;
}
.chat-attachment-button {
background: transparent;
color: var(--text-light);
}
.chat-send-button {
background: var(--primary-blue);
color: var(--white);
}
.chat-send-button:hover {
background: var(--light-blue);
}
.chat-input {
flex: 1;
border: none;
background: transparent;
outline: none;
font-size: 14px;
color: var(--text-dark);
padding: 8px 4px;
}
/* Quote Card Styles */
.quotes-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.quote-card {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-light);
display: flex;
position: relative;
overflow: hidden;
}
.quote-status-indicator {
width: 4px;
height: 100%;
flex-shrink: 0;
}
.quote-card.new .quote-status-indicator {
background: var(--primary-blue);
}
.quote-card.sent .quote-status-indicator {
background: var(--warning-color);
}
.quote-card.accepted .quote-status-indicator {
background: var(--success-color);
}
.quote-card.rejected .quote-status-indicator {
background: var(--danger-color);
}
.quote-content {
padding: 16px;
flex: 1;
}
.quote-id {
font-size: 16px;
font-weight: 500;
color: var(--primary-blue);
margin: 0;
}
.quote-amount {
font-size: 16px;
font-weight: 700;
color: var(--danger-color);
margin-left: auto;
}
.quote-details {
margin-top: 8px;
}
.quote-details p {
margin: 4px 0;
font-size: 12px;
color: var(--text-light);
}
.quote-date, .quote-project {
color: var(--text-dark) !important;
font-weight: 500;
}
.quote-note {
font-size: 11px !important;
}
.status-badge.new {
background: var(--primary-blue);
}
.status-badge.sent {
background: var(--warning-color);
}
.status-badge.accepted {
background: var(--success-color);
}
.status-badge.rejected {
background: var(--danger-color);
}
/* Project Card Styles */
.projects-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.project-card {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-light);
display: flex;
position: relative;
overflow: hidden;
}
.project-status-indicator {
width: 4px;
height: 100%;
flex-shrink: 0;
}
.project-card.in-progress .project-status-indicator {
background: var(--primary-blue);
}
.project-card.completed .project-status-indicator {
background: var(--success-color);
}
.project-card.planning .project-status-indicator {
background: var(--warning-color);
}
.project-card.paused .project-status-indicator {
background: var(--danger-color);
}
.project-content {
padding: 16px;
flex: 1;
}
.project-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.project-name {
font-size: 16px;
font-weight: 500;
color: var(--text-dark);
margin: 0;
flex: 1;
margin-right: 12px;
}
.project-progress {
background: var(--primary-blue);
color: var(--white);
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
flex-shrink: 0;
}
.project-details {
margin-top: 8px;
}
.project-details p {
margin: 6px 0;
font-size: 12px;
color: var(--text-light);
display: flex;
align-items: flex-start;
gap: 8px;
}
.project-details i {
font-size: 11px;
margin-top: 2px;
flex-shrink: 0;
width: 12px;
}
.project-owner, .project-address, .project-date {
color: var(--text-dark) !important;
font-weight: 400;
}
.status-badge.planning {
background: var(--warning-color);
}
/* Form Styles */
.form-container {
padding-bottom: 100px;
}
.form-group {
margin-bottom: 20px;
}
.form-label {
display: block;
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin-bottom: 8px;
}
.form-input, .form-select {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
color: var(--text-dark);
background: var(--white);
transition: all 0.3s ease;
}
.form-input:focus, .form-select:focus {
outline: none;
border-color: var(--primary-blue);
box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.1);
}
.form-textarea {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
color: var(--text-dark);
background: var(--white);
resize: vertical;
min-height: 80px;
font-family: inherit;
transition: all 0.3s ease;
}
.form-textarea:focus {
outline: none;
border-color: var(--primary-blue);
box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.1);
}
.form-select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 12px;
padding-right: 40px;
}
.form-actions {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--white);
border-top: 1px solid var(--border-color);
padding: 16px;
display: flex;
gap: 12px;
z-index: 100;
}
.form-actions .btn {
flex: 1;
margin: 0;
}
.btn-secondary {
background: var(--background-gray);
color: var(--text-dark);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background: var(--border-color);
}
/* Input validation styles */
.form-input:invalid, .form-select:invalid, .form-textarea:invalid {
border-color: var(--danger-color);
}
.form-input:valid, .form-select:valid, .form-textarea:valid {
border-color: var(--success-color);
}
/* Gift Item Styles */
.gifts-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.gift-item {
background: var(--white);
border-radius: 12px;
padding: 16px;
box-shadow: var(--shadow-light);
display: flex;
gap: 12px;
align-items: flex-start;
}
.gift-image {
width: 50px;
height: 50px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}
.gift-item.valid .gift-image {
background: var(--primary-blue);
color: var(--white);
}
.gift-item.used .gift-image {
background: var(--success-color);
color: var(--white);
}
.gift-item.expired .gift-image {
background: var(--danger-color);
color: var(--white);
}
.gift-content {
flex: 1;
}
.gift-name {
font-size: 16px;
font-weight: 500;
color: var(--text-dark);
margin: 0 0 4px 0;
}
.gift-description {
font-size: 13px;
color: var(--text-light);
margin: 0 0 8px 0;
}
.gift-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.gift-info p {
font-size: 12px;
color: var(--text-light);
margin: 0;
display: flex;
align-items: center;
gap: 6px;
}
.gift-info i {
font-size: 10px;
width: 12px;
}
.gift-expiry {
color: var(--primary-blue) !important;
font-weight: 500;
}
.gift-used-date {
color: var(--success-color) !important;
font-weight: 500;
}
.gift-expired-date {
color: var(--danger-color) !important;
font-weight: 500;
}
.gift-actions {
display: flex;
flex-direction: column;
gap: 8px;
flex-shrink: 0;
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
border-radius: 6px;
min-width: 80px;
text-align: center;
}
.gift-item.used, .gift-item.expired {
opacity: 0.7;
}
.gift-item.used .gift-name, .gift-item.expired .gift-name {
text-decoration: line-through;
}
/* Profile Edit Styles */
.profile-avatar-section {
text-align: center;
margin-bottom: 24px;
}
.profile-avatar {
position: relative;
display: inline-block;
}
.profile-avatar img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
border: 4px solid var(--white);
box-shadow: var(--shadow-medium);
}
.avatar-edit-btn {
position: absolute;
bottom: 0;
right: 0;
width: 32px;
height: 32px;
background: var(--primary-blue);
color: var(--white);
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow-light);
}
/* Address Styles */
.address-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.address-item {
background: var(--white);
border-radius: 12px;
padding: 16px;
box-shadow: var(--shadow-light);
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.address-item.default {
border: 2px solid var(--primary-blue);
}
.address-content {
flex: 1;
}
.address-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.address-name {
font-size: 16px;
font-weight: 500;
color: var(--text-dark);
margin: 0;
}
.default-badge {
background: var(--primary-blue);
color: var(--white);
padding: 2px 8px;
border-radius: 10px;
font-size: 10px;
font-weight: 500;
}
.set-default-btn {
background: var(--background-gray);
color: var(--text-light);
border: 1px solid var(--border-color);
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
cursor: pointer;
}
.address-phone {
font-size: 14px;
color: var(--primary-blue);
font-weight: 500;
margin: 4px 0;
}
.address-text {
font-size: 13px;
color: var(--text-light);
margin: 0;
line-height: 1.4;
}
.address-actions {
display: flex;
gap: 8px;
}
.btn-address-edit, .btn-address-delete {
width: 36px;
height: 36px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-address-edit {
color: var(--primary-blue);
}
.btn-address-delete {
color: var(--danger-color);
}
/* Password Input Styles */
.password-input-container {
position: relative;
}
.password-toggle {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-light);
cursor: pointer;
padding: 4px;
}
.form-help {
font-size: 12px;
color: var(--text-light);
margin-top: 4px;
margin-bottom: 0;
}
.security-tips {
background: var(--background-gray);
padding: 16px;
border-radius: 8px;
margin-top: 16px;
}
.security-tips h4 {
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
margin: 0 0 8px 0;
}
.security-tips ul {
margin: 0;
padding-left: 16px;
}
.security-tips li {
font-size: 12px;
color: var(--text-light);
margin-bottom: 4px;
}
/* KHOA */
.quote-request-content {
margin: 14px 0;
padding: 12px;
border: 1px solid var(--border-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* đổ bóng nhẹ */
border-radius: 8px; /* tuỳ chọn, bo góc mềm hơn */
background-color: #fff; /* nên có nền sáng để bóng dễ thấy */
}
.quote-request-details {
position: relative;
}
.quote-request-status-text {
position: absolute;
top: 0;
right: 0;
}
.status-badge.waiting {
background: var(--danger-color);
/* color: var(--text-light); */
}
.status-badge.quoted {
background: var(--success-color );
/* color: var(--text-light); */
}
/* KHOA */
/* Responsive Design */
@media (min-width: 768px) {
.container {
max-width: 768px;
margin: 0 auto;
}
.product-grid {
grid-template-columns: repeat(3, 1fr);
}
.feature-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* ===========================
PRODUCT ACTIONS STYLES
=========================== */
.product-actions {
/*display: flex;*/
gap: 6px;
margin-top: 8px;
width: 100%
}
.btn-360 {
flex: 1;
font-size: 11px;
padding: 6px 8px;
border: 1px solid var(--primary-blue);
background: transparent;
color: var(--primary-blue);
border-radius: 6px;
transition: all 0.3s ease;
width: 100%;
margin-top: 4px;
}
.btn-360:hover {
background: var(--primary-blue);
color: white;
}
.btn-add-cart {
flex: 2;
font-size: 11px;
padding: 6px 8px;
width: 100%;
}
/* ===========================
SHARE MODAL STYLES
=========================== */
/*Thêm*/
/* New Quote Status Badges */
.status-badge.negotiating {
background: #ff9800; /* Orange */
}
.status-badge.finalized {
background: var(--success-color); /* Green */
}
.status-badge.converted {
background: #9c27b0; /* Purple */
}
/* Quote Request Card Styles */
.quote-request-card {
cursor: pointer;
transition: all 0.3s ease;
}
.quote-request-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
.quote-request-card.negotiating .quote-request-status-indicator {
background: #ff9800;
}
.quote-request-card.finalized .quote-request-status-indicator {
background: var(--success-color);
}
.quote-request-card.converted .quote-request-status-indicator {
background: #9c27b0;
}
.quote-request-card.sent .quote-request-status-indicator {
background: var(--primary-blue);
}
.quote-request-card.cancelled .quote-request-status-indicator {
background: var(--text-light);
}
/* Quick Info Grid */
.quick-info {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 20px;
}
.info-item {
padding: 12px;
background: var(--background-gray);
border-radius: 12px;
text-align: center;
}
.info-icon {
font-size: 20px;
color: var(--primary-blue);
margin-bottom: 4px;
}
.info-label {
font-size: 11px;
color: var(--text-light);
margin-bottom: 2px;
}
.info-value {
font-size: 13px;
font-weight: 600;
color: var(--text-dark);
}