* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Auth Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f7fa;
    min-height: 100vh;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
}

.stat-card {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* Quick Add Section */
.quick-add-section {
    background: white;
    padding: 20px;
    margin-bottom: 10px;
}

.quick-add-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.customer-search {
    position: relative;
    margin-bottom: 15px;
}

.customer-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.customer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.customer-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.amount-input {
    margin-bottom: 15px;
}

.amount-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.amount-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 18px;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 15px;
    font-size: 18px;
}

/* Recent Customers */
.recent-customers {
    background: white;
    padding: 20px;
    margin-bottom: 10px;
}

.recent-customers h3 {
    margin-bottom: 15px;
    color: #333;
}

.customer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-chip {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-chip:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Customer List */
.customer-list-section {
    background: white;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    color: #333;
}

.sort-buttons {
    display: flex;
    gap: 5px;
}

.sort-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.customer-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.customer-list-item:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 15px 20px;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}

.customer-details {
    flex: 1;
}

.customer-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.customer-phone {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.customer-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #999;
}

.customer-stats-column {
    text-align: right;
}

.customer-spent {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.customer-points {
    font-size: 0.85rem;
    color: #f39c12;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.1rem;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customer-chip {
        font-size: 13px;
        padding: 8px 12px;
    }
/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Animation cho toast */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
}