/* ==========================================
   TIENPHAM POINT SYSTEM APP UI STYLE
   ========================================== */

.tp-app-card { 
    border-radius: 20px; 
    padding: 20px 15px; 
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    max-width: 100%; 
    margin: 0 auto; 
}

.tp-streak-alert-success {
    background: #d4edda; 
    color: #155724; 
    padding: 10px 15px; 
    border-radius: 10px; 
    font-weight: bold; 
    font-size: 13px; 
    text-align: center; 
    margin-bottom: 15px;
}

.tp-app-row { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 8px; 
}

/* Ô NGÀY THƯỜNG */
.tp-app-item { 
    background: #f3f4f6; 
    border-radius: 12px; 
    padding: 10px 4px; 
    text-align: center; 
    position: relative; 
    transition: 0.25s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 80px; 
}

.tp-app-img { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
    margin-bottom: 2px; 
}

.tp-app-text { 
    font-size: 11px; 
    font-weight: 700; 
    color: #374151; 
}

.tp-app-sub { 
    font-size: 9px; 
    color: #6b7280; 
    font-weight: 500; 
}

/* MỎM NHỌN CỦA HÀNG 1 CHỈ XUỐNG CÁC CHẤM */
.tp-row-top .tp-app-item::after { 
    content: ""; 
    position: absolute; 
    bottom: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-width: 6px 6px 0; 
    border-style: solid; 
    border-color: #f3f4f6 transparent; 
    display: block; 
    width: 0; 
    z-index: 2; 
}

/* MỎM NHỌN CỦA HÀNG 2 CHỈ NGƯỢC LÊN CÁC CHẤM */
.tp-row-bottom .tp-app-item::after { 
    content: ""; 
    position: absolute; 
    top: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-width: 0 6px 6px; 
    border-style: solid; 
    border-color: transparent transparent #f3f4f6; 
    display: block; 
    width: 0; 
    z-index: 2; 
}

/* Ô ACTIVE (MÀU TÍM CỦA NGÀY HIỆN TẠI) */
.tp-app-item.tp-active { 
    background: linear-gradient(135deg, #6366f1, #4f46e5); 
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); 
}

.tp-row-top .tp-app-item.tp-active::after { 
    border-color: #4f46e5 transparent; 
}

.tp-row-bottom .tp-app-item.tp-active::after { 
    border-color: transparent transparent #4f46e5; 
}

.tp-app-item.tp-active .tp-app-text, 
.tp-app-item.tp-active .tp-app-sub { 
    color: #ffffff !important; 
}

/* Ô ĐÃ NHẬN */
.tp-app-item.tp-done { 
    background: #e5e7eb; 
    opacity: 0.65; 
}

.tp-row-top .tp-app-item.tp-done::after { 
    border-color: #e5e7eb transparent; 
}

.tp-row-bottom .tp-app-item.tp-done::after { 
    border-color: transparent transparent #e5e7eb; 
}

.tp-app-done-check { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgb(44 105 253 / 73%); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 10px; 
    font-weight: bold; 
    text-transform: uppercase; 
}

/* THANH PROGRESS BAR 8 CHẤM KẸP GIỮA 2 HÀNG */
.tp-progress-bar-wrapper { 
    position: relative; 
    margin: 18px 12.5% 18px 12.5%; 
    height: 5px; 
    background: #e5e7eb; 
    border-radius: 10px; 
    z-index: 1; 
}

.tp-progress-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #6366f1, #4f46e5); 
    border-radius: 10px; 
    transition: width 0.4s ease; 
}

.tp-dots-container { 
    position: absolute; 
    top: 50%; left: 0; right: 0; 
    transform: translateY(-50%); 
    display: flex; 
    justify-content: space-between; 
    margin: 0 -4px; 
}

.tp-dot { 
    width: 10px; 
    height: 10px; 
    background: #ffffff; 
    border: 2px solid #d1d5db; 
    border-radius: 50%; 
    transition: 0.3s; 
    box-sizing: border-box; 
}

.tp-dot.active { 
    border-color: #4f46e5; 
    background: #6366f1; 
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.5); 
}

/* NÚT BẤM */
.tp-btn-action { 
    width: 100%; 
    background: linear-gradient(135deg, #6366f1, #4f46e5); 
    color: #ffffff; 
    border: none; 
    padding: 14px; 
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); 
    transition: 0.2s; 
    margin-top: 15px; 
}

.tp-btn-action:hover { 
    opacity: 0.95; 
    transform: translateY(-1px); 
}

.tp-btn-disabled { 
    width: 100%; 
    background: #9ca3af; 
    color: #ffffff; 
    border: none; 
    padding: 14px; 
    border-radius: 14px; 
    font-size: 14px; 
    font-weight: bold; 
    cursor: not-allowed; 
    text-align: center; 
    margin-top: 15px; 
}
