/**
 * Stylesheet cho công cụ Kiểm tra địa chỉ IP (IP Checker)
 */

.hihi-ip-container {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
}

/* Kiểu dáng bản đồ Leaflet */
#ip-map {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
}

/* Bo tròn góc và ẩn phần thừa Leaflet */
.leaflet-container {
    font-family: inherit;
    border-radius: 1.25rem;
}

/* Ẩn link bản quyền của Leaflet để giao diện sạch sẽ, chuyên nghiệp hơn */
.leaflet-control-attribution {
    display: none !important;
}

/* Spinner tải dữ liệu */
.ip-spinner {
    border-top-color: #4f46e5 !important;
    animation: ip-spin 0.8s linear infinite;
}

@keyframes ip-spin {
    to { transform: rotate(360deg); }
}

/* Nút lịch sử tìm kiếm */
.history-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.history-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.history-btn:active {
    transform: translateY(0);
}

/* Nút xóa trong phần tử lịch sử */
.history-item-remove {
    margin-left: 0.5rem;
    color: #94a3b8;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.history-item-remove:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

/* Tùy chỉnh thanh cuộn cho lịch sử */
#history-list::-webkit-scrollbar {
    width: 4px;
}

#history-list::-webkit-scrollbar-track {
    background: transparent;
}

#history-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#history-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Micro animations */
#ip-copy-btn:hover {
    color: #4f46e5;
    background-color: #e0e7ff;
    border-color: #c7d2fe;
}

.bg-white {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-white:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}
