:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --light: #f8f9fa;
    --dark: #343a40;
}

body {
    font-family: 'Prompt', 'Kanit', sans-serif;
    background-color: #f5f7fa;
}

.gradient-custom {
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    border: none;
}

.customer-profile {
    display: flex;
    align-items: center;
    padding: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge-rank {
    background: linear-gradient(to right, #FFD700, #FFA500);
    color: white;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
}

.service-item, .product-item, .package-item {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 10px;
    background-color: rgba(106, 17, 203, 0.05);
    padding: 10px 15px;
    border-radius: 0 10px 10px 0;
}

.product-item {
    border-left-color: var(--secondary);
    background-color: rgba(37, 117, 252, 0.05);
}

.package-item {
    border-left-color: #20c997;
    background-color: rgba(32, 201, 151, 0.05);
}

.payment-method {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
    background-color: #e9ecef;
}

.points-badge {
    background: linear-gradient(to right, #11998e, #38ef7d);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tab-content {
    padding: 20px 0;
}

.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-weight: 500;
    color: var(--dark);
}

.nav-tabs .nav-link.active {
    background-color: white;
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.progress {
    height: 10px;
    border-radius: 10px;
}

.progress-62 {
    width: 62.5%;
}

.progress-3 {
    width: 3.3%;
}

.progress-20 {
    width: 20%;
}

.progress-66 {
    width: 66.7%;
}

.progress-30 {
    width: 30%;
}

.progress-10 {
    width: 10%;
}

.package-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Product Usage Styles */
.product-usage-list .progress {
    height: 8px;
}

.usage-chart {
    padding: 0.5rem;
}

.chart-container {
    height: 120px;
}

.chart-bar {
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.bar-item {
    flex: 1;
    margin: 0 5px;
}

.bar-fill {
    position: relative;
}

.bar-fill.bg-primary {
    height: 60%;
}

.bar-fill.bg-info {
    height: 30%;
}

.bar-fill.bg-success {
    height: 10%;
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
}

.bar-label {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Animations */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -20px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
