
/* Thiết lập chung */
.quark-container {
    margin: 2rem 0;
    font-family: inherit; /* Sử dụng font của website */
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Tiêu đề */
.quark-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
}

.quark-icon {
    width: 20px;  /* Tăng lên 20px */
    height: 20px;  /* Tăng lên 20px */
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quark-icon img {
    width: 100%;
    height: 100%;
}

/* Grid cards */
.quark-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .quark-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card */
.quark-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.quark-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.quark-card-header {
    padding: 15px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.quark-card-icon {
    flex-shrink: 0;
    width: 20px;  /* Tăng lên 20px */
    height: 20px;  /* Tăng lên 20px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.quark-card-icon img {
    width: 100%;
    height: 100%;
}

.quark-card-title {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin-left: 10px;
}

.quark-card-content {
    padding: 16px;
}

/* Item */
.quark-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.quark-item:last-child {
    border-bottom: none;
}

.quark-item-dot {
    width: 6px;
    height: 6px;
    background: #0866FE;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.quark-item-label {
    font-size: 15px;
    color: #64748b;
    flex: 1;
    line-height: 1.4;
}

.quark-item-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    flex-shrink: 0;
}

/* Footer */
.quark-footer {
    background: #f0fdf4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    align-items: center;
    border: 1px solid #bbf7d0;
    margin-top: 10px;
}

.quark-footer-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quark-footer-icon img {
    width: 100%;
    height: 100%;
}

.quark-footer-text {
    font-size: 15px;
    color: #16a34a;
    font-weight: 600;
    margin-left: 12px;
    line-height: 1.4;
}

/* Màu chủ đạo và hành động */
.quark-primary-color {
    color: #0866FE;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 767px) {
    .quark-container {
        padding: 15px;
        margin: 1.5rem 0;
    }

    .quark-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .quark-cards {
        gap: 12px;
        margin-bottom: 12px;
    }

    .quark-card-header {
        padding: 12px 14px;
    }

    .quark-card-title {
        font-size: 15px;
    }

    .quark-card-content {
        padding: 14px;
    }

    .quark-item {
        padding: 6px 0;
    }

    .quark-item-label,
    .quark-item-value {
        font-size: 14px;
    }

    .quark-footer {
        padding: 14px;
    }

    .quark-footer-text {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 479px) {
    .quark-container {
        padding: 12px;
        border-radius: 8px;
    }

    .quark-title {
        font-size: 15px;
    }

    .quark-item-label,
    .quark-item-value {
        font-size: 13px;
    }

    .quark-footer-text {
        font-size: 13px;
    }
}

/* ==========================================================================
   BETTER VISUAL ENHANCEMENTS
   ========================================================================== */

/* Add subtle animation */
.quark-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

/* Better loading state fallback */
.quark-container:empty::after {
    content: "Đang tải thông tin vận chuyển...";
    display: block;
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 40px;
}

/* Icon hover effects */
.quark-icon:hover,
.quark-card-icon:hover,
.quark-footer-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Better focus states for accessibility */
.quark-card:focus-within {
    box-shadow: 0 4px 12px rgba(8, 102, 254, 0.15);
    outline: none;
}

/* Print styles */
@media print {
    .quark-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
